/* ==================== MODERN NAVBAR ==================== */
.navbar-modern {
    background: linear-gradient(to bottom, #faf8fc, #f5f3f9);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(45, 36, 56, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    flex: 0.5;
}

.nav-menu-item {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
}

.nav-menu-item:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.navbar-search {
    flex: 1;
    display: flex;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: white;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--color-text-lighter);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 126, 195, 0.1);
    background: white;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.user-name {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-logout {
    padding: 0.6rem 1.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(139, 126, 195, 0.2);
}

.btn-logout:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 126, 195, 0.3);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== FOOTER ==================== */
.footer-modern {
    background: white;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-lighter);
    font-size: 0.85rem;
}

/* ==================== DASHBOARD CONTAINER ==================== */
.dashboard-container {
    width: 100%;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--color-text);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.highlight {
    color: var(--color-primary);
}

.subtitle {
    color: var(--color-text-lighter);
    font-size: 0.95rem;
    margin: 0;
}

/* ==================== ADMIN TABLE ==================== */
.admin-table-wrapper {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(45, 36, 56, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: linear-gradient(to right, #f5f3f9, #faf8fc);
    border-bottom: 2px solid var(--color-border);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    border-right: 1px solid var(--color-border-light);
}

.admin-table th:last-child {
    border-right: none;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
    background-color: #faf8fc;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #fdfbfe;
}

.admin-table td {
    padding: 1rem;
    color: var(--color-text);
    border-right: 1px solid var(--color-border-light);
}

.admin-table td:last-child {
    border-right: none;
}

.admin-table .cell-action {
    text-align: center;
}

.cell-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ==================== TABLE ALIGNMENT & STYLING ==================== */
.align-center {
    text-align: center !important;
}

.align-end {
    text-align: right !important;
}

.align-left {
    text-align: left !important;
}

.admin-table .header-cell {
    background: linear-gradient(to right, #f5f3f9, #faf8fc) !important;
    font-weight: 600;
}

.admin-table .footer-cell {
    background: linear-gradient(to right, #ede9f6, #f0ecf8) !important;
    font-weight: 600;
    border-top: 2px solid var(--color-border);
}

.admin-table .metrics-cell {
    white-space: pre-wrap !important;
    word-break: break-word;
    text-align: left !important;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem !important;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid var(--color-border-light);
}

.pagination button,
.pagination a {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.pagination button:hover,
.pagination a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(45, 36, 56, 0.1);
}

.login-container h2 {
    color: var(--color-text);
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
    color: var(--color-text);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 126, 195, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-lighter);
}

.btn-login {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(139, 126, 195, 0.2);
}

.btn-login:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 126, 195, 0.3);
}

/* ==================== CARDS ==================== */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(45, 36, 56, 0.05);
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(139, 126, 195, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.card-header h3 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-display {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(45, 36, 56, 0.05);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(139, 126, 195, 0.1);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.stat-new::before {
    background: #3b82f6;
}

.stat-card.stat-processing::before {
    background: #f59e0b;
}

.stat-card.stat-finished::before {
    background: #10b981;
}

.stat-card.stat-error::before {
    background: #ef4444;
}

.stat-label {
    color: var(--color-text-lighter);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-number {
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.6;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -1px;
}

.tab-button:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
}

.badge-processing {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--color-text-lighter);
    font-size: 0.95rem;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(45, 36, 56, 0.05);
}

/* ==================== DASHBOARD GRID ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
