:root {
    --primary-color: #4A90E2;
    --secondary-color: #34C759;
    --background-color: #F5F5F5;
    --text-color: #333333;
    --accent-color: #FF9500;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    padding: 16px;
    /* Remove max-width restriction to allow full width */
    width: 100%;
}

h1 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.upload-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 24px;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 8px 24px;
    border-radius: 8px;
}

.btn-success:hover {
    background-color: #2da84e;
    border-color: #2da84e;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 0;
}

.table {
    background: white;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border: none;
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Style for the split words column */
.split-words {
    font-family: 'Roboto Mono', monospace;
    color: var(--text-color);
    background-color: rgba(74, 144, 226, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    white-space: normal;
    word-wrap: break-word;
    cursor: text;
    transition: all 0.2s ease;
}

.split-words:hover {
    background-color: rgba(74, 144, 226, 0.1);
    border-color: var(--primary-color) !important;
}

.split-words:focus {
    outline: none;
    background-color: white;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Style for the confidence cell */
.confidence-cell {
    position: relative;
    padding: 12px 16px !important;
    text-align: center;
    min-width: 120px;
}

.confidence-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: rgba(52, 199, 89, 0.1);
    z-index: 1;
}

.confidence-cell span {
    position: relative;
    z-index: 2;
    font-weight: 500;
}

@media (max-width: 768px) {
    .upload-area {
        padding: 16px;
    }
}

.alert {
    border-radius: 8px;
    padding: 16px;
}

.word-cloud-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    height: 600px;
    width: 100%;
    position: relative;
}

.word-cloud-text {
    cursor: default;
    user-select: none;
}

/* Style for download buttons */
.btn-outline-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 6px;
    border-radius: 4px;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-outline-primary:hover {
    background-color: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.btn-outline-primary i {
    font-size: 14px;
    margin: 0;
    color: white;
    display: inline-block;
}

/* Animate download icon on hover */
.btn-outline-primary:hover i {
    transform: translateY(2px);
    transition: transform 0.2s ease;
}

/* Add styles for the Mark as Reviewed button */
.mark-reviewed {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
}

.mark-reviewed:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

/* Add at the end of the file */
.sort-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    color: var(--primary-color);
}

th[data-sort] {
    cursor: pointer;
    user-select: none;
}

th[data-sort]:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

/* Add notification styles */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}