body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
}

/* Modern Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.navbar-brand {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-menu a:hover {
    background: rgba(255,255,255,0.15);
    padding: 12px 16px;
}

.navbar-menu a.active {
    background: #16a085;
    border-bottom: 3px solid #fff;
}

.navbar-logout {
    background: #e74c3c;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.navbar-logout:hover {
    background: #c0392b;
}

.topbar {
    background: transparent;
    padding: 0;
    display: none;
}

.topbar a {
    color: white;
    text-decoration: none;
}

.cards {
    display: flex;
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #16a085;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.card.full-width {
    flex: 1 1 100%;
    min-width: auto;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 15px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e7ecf5;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.muted {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.table {
    width: 95%;
    margin: 20px;
    border-collapse: collapse;
    background: white;
}

th {
    background: #34495e;
    color: white;
    padding: 10px;
}

td {
    padding: 10px;
    text-align: center;
}

.login-body {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
}

button {
    width: 100%;
    padding: 10px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #1f2d3d;
}

.report-container {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 16px;
}

.filter-box {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-form button {
    width: auto;
    min-width: 125px;
}

.export-group {
    display: flex;
    gap: 8px;
}

.export-group button {
    flex: 1;
    min-width: 140px;
}

.btn.secondary,
button.secondary {
    background: #16a085;
}

.btn.secondary:hover,
button.secondary:hover {
    background: #117a66;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
}

.input-group label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 4px rgba(44, 62, 80, 0.2);
}

.report-table {
    width: 100%;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.report-table th,
.report-table td {
    border-right: 1px solid #eaeef4;
}

.report-table th:last-child,
.report-table td:last-child {
    border-right: none;
}

.report-table th {
    background: #2c3e50;
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.report-table tr:nth-child(even) {
    background: #f8fafc;
}

.report-table tr:hover {
    background: #ebf2f8;
}

.page-header {
    background: white;
    padding: 20px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-header h2 {
    margin: 0;
    color: #2c3e50;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.table-controls.filters {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.filter-form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.filter-item label {
    font-size: 0.85rem;
    color: #556b87;
}

.filter-item input,
.filter-item select {
    padding: 8px 10px;
    border: 1px solid #d9e1f3;
    border-radius: 8px;
    min-width: 140px;
    font-size: 0.9rem;
}

.filter-item.action-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.filter-item.action-group .btn,
.filter-item.action-group .btn.secondary {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.total-count {
    color: #666;
    font-size: 0.9rem;
}

.total-count strong {
    color: #2c3e50;
    font-weight: 600;
}

.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.modern-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.modern-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.modern-table tbody tr:hover {
    background: #f8fafc;
    transition: background 0.2s ease;
}

.id-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.company-tag {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.dept-tag {
    background: #fff3e0;
    color: #ef6c00;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Action Form Styles */
.action-form {
    display: flex;
    align-items: center;
}

.move-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.modern-select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    min-width: 120px;
    background: white;
}

.modern-select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 4px rgba(44, 62, 80, 0.2);
}

.btn-move {
    background: #16a085;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.btn-move:hover {
    background: #117a66;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-top: 20px;
    gap: 12px;
}

.pagination-pages {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    color: #4b5f7b;
    text-decoration: none;
    border: 1px solid #d9e1f3;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #eaf2ff;
    border-color: #a7c5ff;
}

.page-link.active {
    background: #e5ebff;
    color: #2b3d79;
    border-color: #6a85ff;
    font-weight: 700;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rows-per-page {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rows-per-page label {
    font-size: 0.9rem;
    color: #4b5f7b;
    white-space: nowrap;
}

.goto-page {
    display: flex;
    align-items: center;
    gap: 6px;
}

.goto-page label {
    font-size: 0.9rem;
    color: #4b5f7b;
    white-space: nowrap;
}

.pagination-controls select,
.pagination-controls input {
    padding: 6px 10px;
    border: 1px solid #d9e1f3;
    border-radius: 8px;
    background: #fff;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-controls input {
    width: 70px;
    text-align: center;
}

.pagination-controls button {
    padding: 6px 12px;
    border: 1px solid #6a85ff;
    background: #6a85ff;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-controls button:hover {
    background: #5570de;
}

.page-link:hover {
    background: #2c3e50;
    color: white;
}

.page-link.active {
    background: #16a085;
    color: white;
    border-color: #16a085;
}

.page-info {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .rows-selector {
        justify-content: center;
    }

    .total-count {
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .modern-select {
        min-width: 100%;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .modern-table th,
    .modern-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 10px;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .navbar-menu a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .input-group {
        min-width: 100%;
    }
    button {
        width: 100%;
    }
}
