/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #add8e6;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.login-header h1 i {
    margin-right: 15px;
    color: #FF9800;
}

.login-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.input-container input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-container input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fcc;
}

/* Header */
.header {
    position: relative;
    margin-bottom: 40px;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header h1 i {
    margin-right: 15px;
    color: #FF9800;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.welcome-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.welcome-message i {
    font-size: 1.2rem;
    color: #4CAF50;
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Controls */
.controls {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-container select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-container select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.refresh-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.refresh-btn:active {
    transform: translateY(0);
}

.predictive-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.predictive-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334e68;
    cursor: pointer;
    white-space: nowrap;
}

.predictive-toggle input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.predictive-container input[type="date"] {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.predictive-container input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.predictive-container input[type="date"]:disabled {
    background: #f0f2f5;
    color: #9aa5b1;
    cursor: not-allowed;
}

.predictive-date-error {
    color: #c0392b;
    font-size: 13px;
    font-weight: 500;
}

.predictive-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(237, 137, 54, 0.25);
}



/* Table Container */
.table-container {
    background: white;
    border-radius: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.loading, .error {
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.loading i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.error i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Table */
.rates-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    font-size: 14px;
}

.rates-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rates-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rates-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
}

.rates-table th.sortable:hover {
    background-color: rgba(255,255,255,0.1);
}

.rates-table th.sortable i {
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.rates-table th.sortable:hover i {
    opacity: 1;
}

.rates-table th.sortable.active i {
    opacity: 1;
}

.rates-table th.sortable.asc i::before {
    content: "\f0de";
}

.rates-table th.sortable.desc i::before {
    content: "\f0dd";
}

.rates-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.rates-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.rates-table tbody tr:nth-child(even):hover {
    background-color: #f0f2f5;
}

.rates-table td {
    padding: 18px 15px;
    vertical-align: middle;
}

.rates-table td:first-child {
    font-weight: 600;
    color: #333;
}

.rate-value {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.rate-value.admin-rate {
    color: #3498db;
    position: relative;
}

.rate-value.calculated-rate {
    color: #e67e22;
    position: relative;
}

.rate-value.admin-rate::after {
    content: " (Admin)";
    font-size: 0.7rem;
    color: #3498db;
    font-weight: 500;
}

.margin-value {
    font-weight: 700;
    color: #e67e22;
    font-size: 1.1rem;
    background-color: #fef9e7;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #e67e22;
}

.carrier-link {
    color: #667eea;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.carrier-link:hover {
    color: #5a6fd8;
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    text-decoration: underline;
}

.contract-owner-link {
    color: #28a745;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.contract-owner-link:hover {
    color: #218838;
    background-color: rgba(40, 167, 69, 0.1);
    transform: translateY(-1px);
    text-decoration: underline;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-arrow {
    color: #667eea;
    font-size: 0.8rem;
}

.container-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.validity-date {
    color: #666;
    font-size: 0.9rem;
}

.transit-time {
    color: #f39c12;
    font-weight: 600;
}

.notes {
    color: #666;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Carrier Link Styles */
.carrier-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carrier-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Contract Link Styles */
.contract-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pagination-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#pageInfo {
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .filter-container {
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .rates-table {
        font-size: 12px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 12px 8px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .rates-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .rates-table thead,
    .rates-table tbody,
    .rates-table th,
    .rates-table td,
    .rates-table tr {
        display: block;
    }
    
    .rates-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .rates-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        border-radius: 8px;
        padding: 10px;
    }
    
    .rates-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .rates-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #333;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rates-table tbody tr {
    animation: fadeIn 0.3s ease;
}

/* Custom scrollbar */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    background: transparent;
    border: 0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.loading-modal, .error-modal {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-modal i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.error-modal i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.sailings-table-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sailings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sailings-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sailings-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sailings-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
}

.sailings-table th.sortable:hover {
    background-color: rgba(255,255,255,0.1);
}

.sailings-table th.sortable i {
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sailings-table th.sortable:hover i {
    opacity: 1;
}

.sailings-table th.sortable.active i {
    opacity: 1;
}

.sailings-table th.sortable.asc i::before {
    content: "\f0de";
}

.sailings-table th.sortable.desc i::before {
    content: "\f0dd";
}

.sailings-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.sailings-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.sailings-table tbody tr:nth-child(even):hover {
    background-color: #f0f2f5;
}

.sailings-table td {
    padding: 15px 12px;
    vertical-align: middle;
}

.sailings-table td:first-child {
    font-weight: 600;
    color: #333;
}

.sailings-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.sailings-summary h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.sailings-summary p {
    margin: 5px 0;
    color: #666;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .sailings-table {
        font-size: 12px;
    }
    
    .sailings-table th,
    .sailings-table td {
        padding: 10px 8px;
    }
}

/* Contract Modal Styles */
.contract-details {
    max-width: 100%;
}

.contract-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.contract-header h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.contract-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contract-id, .contract-type {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contract-type {
    background: #28a745;
}

.contract-description {
    margin-bottom: 30px;
}

.contract-description h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contract-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.contract-rates {
    margin-bottom: 25px;
}

.contract-rates h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.rate-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rate-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.rate-type {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.rate-card .rate-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 8px;
}

.rate-note {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.contract-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-top: 3px solid #667eea;
}

.validity-info, .route-info {
    margin-bottom: 10px;
    color: #333;
}

.validity-info:last-child, .route-info:last-child {
    margin-bottom: 0;
}

.validity-info strong, .route-info strong {
    color: #667eea;
}

/* Responsive Contract Modal */
@media (max-width: 768px) {
    .contract-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .rate-card {
        padding: 15px;
    }
    
    .rate-card .rate-value {
        font-size: 1.5rem;
    }
}

/* Hamburger Menu Styles */
.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.hamburger-menu {
    position: absolute;
    top: 100%;
    left: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 10px;
}

.hamburger-menu .menu-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.hamburger-menu .menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hamburger-menu .menu-item i {
    margin-right: 10px;
    width: 20px;
}

/* Admin Screen Styles */
.admin-content {
    margin-top: 30px;
}

.admin-table-container {
    background: white;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

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

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

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

.admin-table td {
    padding: 18px 15px;
    vertical-align: middle;
}

.admin-table td:first-child {
    font-weight: 600;
    color: #333;
}

.admin-table input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.admin-table input:focus {
    outline: none;
    border-color: #667eea;
}

.admin-table input.changed {
    border-color: #ffa500;
    background-color: #fff8e1;
}

/* Pull Forward Data admin panel */
.pull-forward-panel {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.pull-forward-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 6px;
}

.pull-forward-subtitle {
    color: #627d98;
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.pull-forward-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.pf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.pf-field > label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.pf-field input,
.pf-field select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.pf-field input:focus,
.pf-field select:focus {
    outline: none;
    border-color: #667eea;
}

.pf-field input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}

.pf-checkbox {
    justify-content: flex-end;
}

.pf-checkbox > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.pf-checkbox input {
    width: auto;
}

.pull-forward-actions {
    margin-top: 4px;
}

.pull-forward-success {
    margin-top: 16px;
    padding: 12px 15px;
    border-radius: 8px;
    background: #e6f6ec;
    color: #218838;
    border: 1px solid #b7e4c7;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 2026 visual refresh */
:root {
    --ink: #102a43;
    --muted: #627d98;
    --line: #d9e2ec;
    --surface: #ffffff;
    --surface-muted: #f6f9fc;
    --brand: #0b7285;
    --brand-dark: #075a69;
    --accent: #ffb703;
}

body {
    background:
        radial-gradient(circle at 0 0, rgba(137, 207, 240, 0.34), transparent 32rem),
        radial-gradient(circle at 100% 8%, rgba(116, 198, 157, 0.2), transparent 26rem),
        #f4f7fb;
    color: var(--ink);
}

.container {
    max-width: 1600px;
    padding: 28px;
}

.login-container {
    background: linear-gradient(135deg, #102a43 0%, #1d4e5f 58%, #0b7285 100%);
}

.login-card {
    max-width: 430px;
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(8, 36, 58, 0.28);
}

.login-header h1,
.header h1 {
    color: var(--ink);
    letter-spacing: -0.055em;
}

.login-header h1 i,
.header h1 i {
    display: inline-grid;
    width: 1.65em;
    height: 1.65em;
    margin-right: 0.5em;
    place-items: center;
    border-radius: 0.5em;
    background: var(--ink);
    color: var(--accent);
    font-size: 0.68em;
    vertical-align: 0.1em;
}

.login-subtitle {
    color: var(--muted);
    font-weight: 400;
}

.input-container input,
.search-container input,
.filter-container select,
.admin-table input {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--ink);
}

.input-container input:focus,
.search-container input:focus,
.filter-container select:focus,
.admin-table input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(11, 114, 133, 0.13);
}

.login-btn,
.refresh-btn,
.save-btn,
.pagination-btn {
    border-radius: 10px;
    background: var(--brand);
    box-shadow: none;
}

.login-btn:hover,
.refresh-btn:hover,
.save-btn:hover,
.pagination-btn:hover:not(:disabled) {
    background: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(11, 114, 133, 0.2);
}

.header {
    margin-bottom: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(32, 56, 85, 0.06);
    color: var(--ink);
    backdrop-filter: blur(18px);
}

.header h1 {
    margin-bottom: 4px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-shadow: none;
}

.subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.welcome-message {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    padding: 9px 12px;
    backdrop-filter: none;
}

.welcome-message i { color: var(--brand); }

.logout-btn {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    backdrop-filter: none;
}

.logout-btn:hover {
    border-color: #f1b5b5;
    background: #fff5f5;
    color: #b42318;
    transform: none;
}

.hamburger-btn { color: var(--ink); }

.controls {
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(32, 56, 85, 0.05);
}

.search-container { min-width: 260px; }
.search-container input { padding-block: 13px; }
.filter-container { gap: 10px; }
.filter-container select { min-width: 140px; padding: 12px 34px 12px 12px; }

.table-container,
.admin-table-container {
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(32, 56, 85, 0.055);
}

.rates-table { font-size: 13px; }

.rates-table thead,
.admin-table thead {
    background: #102a43;
    color: #f8fbff;
}

.rates-table th {
    padding: 15px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.rates-table td { padding: 15px; }
.rates-table tbody tr { border-bottom-color: #edf2f7; }
.rates-table tbody tr:nth-child(even) { background: #fbfcfe; }
.rates-table tbody tr:hover,
.rates-table tbody tr:nth-child(even):hover { background: #eaf7f8; }
.rates-table td:first-child { color: var(--ink); }

.rate-value { color: #087f5b; font-size: 1rem; }
.carrier-link,
.contract-link { color: var(--brand); padding: 3px 0; }
.carrier-link:hover,
.contract-link:hover { color: var(--brand-dark); background: transparent; transform: none; }

.pagination {
    justify-content: flex-end;
    gap: 12px;
    color: var(--muted);
}

.pagination-btn { padding: 9px 13px; }
.pagination-btn:disabled { background: #e5eaf0; color: #9aa5b1; }

.modal-content {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 28px 72px rgba(16, 42, 67, 0.25);
}

.modal-header { background: var(--ink); border-radius: 20px 20px 0 0; }

@media (max-width: 700px) {
    .container { padding: 14px; }
    .header { padding: 20px; }
    .header-right { width: 100%; justify-content: space-between; gap: 8px; }
    .welcome-message { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .controls { padding: 12px; }
    .filter-container { width: 100%; }
    .filter-container select { flex: 1 1 45%; min-width: 0; }
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    margin-right: 15px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.save-btn {
    background: #28a745;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.save-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.save-btn:active {
    transform: translateY(0);
}

.save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Admin Screen */
@media (max-width: 768px) {
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }
}

/* Final admin-control overrides for the refreshed application shell. */
.back-btn {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
}

.back-btn:hover { background: var(--surface-muted); }

.save-btn {
    border-radius: 10px;
    background: var(--brand);
}

.save-btn:hover {
    background: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(11, 114, 133, 0.2);
}
