/* style.css - Global styles for My Personal Database */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Container for login/register forms */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Form card styling */
.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-logo {
    display: block;
    margin: 0 auto 30px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.form-card h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.form-card .subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    min-width: 0;
    margin-bottom: 0;
}

.form-row-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row-flex .form-group {
    min-width: 0;
    margin-bottom: 0;
}
.form-group-wide {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    height: 46px; /* Match select field height */
}

.form-group input:not([type="checkbox"]):focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Textarea styling */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea::placeholder {
    color: #999;
}

/* Password wrapper for eye icon */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.toggle-password:hover {
    color: #667eea;
}

.toggle-password:focus {
    outline: none;
}

.eye-icon {
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #7c8ff5 0%, #764ba2 100%);
    color: white;
    width: 100%;
    margin-top: 10px;
    padding: 10px 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 6px rgba(102, 126, 234, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(102, 126, 234, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 4px rgba(102, 126, 234, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    border-bottom: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #fc6c7c 0%, #ff5252 100%);
    color: white;
    padding: 10px 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 6px rgba(252, 108, 124, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(252, 108, 124, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 4px rgba(252, 108, 124, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 6px rgba(102, 126, 234, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(102, 126, 234, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-nav:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 4px rgba(102, 126, 234, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, #34d058 0%, #28a745 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px rgba(40, 167, 69, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(40, 167, 69, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-success:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 4px rgba(40, 167, 69, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn-cancel {
    background: linear-gradient(135deg, #fc6c7c 0%, #ff5252 100%);
    color: white;
    padding: 10px 20px;
    min-width: 120px;
    margin-top: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 6px rgba(252, 108, 124, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-cancel:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(252, 108, 124, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.btn-cancel:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 4px rgba(252, 108, 124, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-back:active {
    transform: translateY(0);
}

.btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Messages */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

/* Form footer */
.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Dashboard footer */
.dashboard-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.dashboard-footer p {
    margin: 0;
    font-size: 14px;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-left {
    text-align: left;
    padding-left: 40px;
}

.footer-right {
    text-align: right;
    padding-right: 40px;
}

/* Navigation bar */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.nav-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    flex-shrink: 0;
}

.nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-brand h2 {
    color: white;
    font-size: 20px;
    margin: 0;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-info {
    color: white;
    font-weight: 500;
    font-size: 15px;
}

#username-display {
    text-transform: capitalize;
}

/* Dashboard container */
.dashboard-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

.welcome-card h1 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 15px;
}

.welcome-text {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

/* User details card */
.user-details-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.user-details-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.detail-value {
    color: #333;
    flex: 1;
}

/* Info box */
.info-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.info-box h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-box p {
    color: #555;
    margin-bottom: 12px;
}

.info-text {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    color: #555;
    padding: 8px 0;
    font-size: 15px;
}

/* Responsive design */
@media (max-width: 600px) {
    .form-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-group-wide {
        grid-column: span 1;
    }
    
    .form-row .form-group {
        margin-bottom: 10px;
    }
    
    .welcome-card {
        padding: 25px 20px;
    }
    
    .nav-container {
        padding: 0 12px;
        gap: 6px;
    }

    .nav-brand h2 {
        font-size: 15px;
    }

    .nav-logo {
        height: 28px;
    }

    .nav-menu {
        gap: 8px;
    }

    .user-info {
        font-size: 12px;
    }

    .btn-nav {
        padding: 7px 12px;
        font-size: 13px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .dashboard-footer {
        padding: 8px 12px;
        justify-content: center;
        gap: 2px;
    }

    .footer-left, .footer-right {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        flex: none;
    }

    .dashboard-footer p {
        font-size: 11px;
    }

    .detail-label {
        min-width: auto;
    }
}

/* Select dropdown styling */
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
    height: 46px; /* Match input field height */
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Custom searchable dropdown */
.searchable-dropdown {
    position: relative;
}

.searchable-dropdown .dropdown-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
    cursor: text;
}

.searchable-dropdown .dropdown-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.searchable-dropdown .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: -2px;
}

.searchable-dropdown .dropdown-list.show {
    display: block;
}

.searchable-dropdown .dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 46px;
    display: flex;
    align-items: center;
}

.searchable-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.searchable-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
}

.searchable-dropdown .dropdown-item.selected {
    background-color: #e8eeff;
    color: #667eea;
    font-weight: 500;
}

.searchable-dropdown .no-results {
    padding: 12px 15px;
    color: #999;
    font-style: italic;
    font-size: 14px;
    text-align: center;
}

/* Tab Styles */
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom Dialog Box */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.dialog-overlay.show {
    display: flex;
}

.dialog-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dialog-header {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.dialog-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dialog-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.dialog-btn-cancel:hover {
    background: #d0d0d0;
}

.dialog-btn-confirm {
    background: linear-gradient(135deg, #fc6c7c 0%, #ff5252 100%);
    color: white;
}

.dialog-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 108, 124, 0.4);
}

/* ==================== ITINERARY TABLE ==================== */
#itinerary-list {
    overflow-x: auto;
    width: 100%;
}

#itinerary-table {
    table-layout: fixed;
    min-width: 1710px;
}

#itinerary-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
}

/* Timezone Display Styles */
.timezone-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.timezone-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border: 3px inset #ccc;
    border-radius: 4px;
    padding: 8px 16px;
    margin-bottom: 16px;
}

.timezone-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timezone-selector-label {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.timezone-selector {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    color: #333;
}

.current-date-display {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.current-time-display {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

.current-timezone-display {
    font-size: 14px;
    color: #666;
}

.current-timezone-name {
    font-weight: 600;
    color: #667eea;
}

.icon-margin-right {
    margin-right: 8px;
}

.icon-margin-left {
    margin-left: 8px;
}

/* Excel Export Styles - Reusable for all export functions */
.excel-export-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
}

.excel-export-date {
    font-size: 12px;
    color: #666;
    text-align: left;
    padding: 8px 15px;
    background-color: #f8f9fa;
}

.excel-export-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.excel-export-table th {
    background-color: #bfbfbf;
    color: #000000;
    font-weight: bold;
    font-size: 14px;
    padding: 10px;
    text-align: left;
    border: 1px solid #a0a0a0;
}

.excel-export-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    color: #333;
}

.excel-export-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.excel-export-table tr:hover {
    background-color: #f0f0f0;
}

/* Common page container for consistent width across pages */
.page-container {
    padding: 40px 20px 100px 20px;
    max-width: 90%;
    margin: 0 auto;
}

/* Status text colors for Yes/No indicators */
.text-yes {
    color: green;
}

.text-no {
    color: red;
}

/* Action Buttons for Currency Setup and other tables */
.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.action-buttons .btn-small {
    padding: 0;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
    width: 48px;
    min-height: 48px;
    min-width: 48px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    vertical-align: middle;
    margin: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 2px rgba(255, 255, 255, 0.5),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.action-buttons .btn-small:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15),
                inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.action-buttons .btn-edit {
    background: linear-gradient(135deg, #8c9dff 0%, #667eea 50%, #5a6fd8 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.action-buttons .btn-edit:hover {
    background: linear-gradient(135deg, #9daeff 0%, #7c8df8 50%, #667eea 100%);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.6),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.action-buttons .btn-delete {
    background: linear-gradient(135deg, #ff7a88 0%, #ee5a6f 50%, #d94d61 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.action-buttons .btn-delete:hover {
    background: linear-gradient(135deg, #ff8a98 0%, #ff6b7a 50%, #ee5a6f 100%);
    box-shadow: 0 8px 16px rgba(252, 108, 124, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.6),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.action-buttons .btn-email {
    background: linear-gradient(135deg, #ffd84d 0%, #fbb034 50%, #f7971e 100%);
    color: #7a4300;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.action-buttons .btn-email:hover {
    background: linear-gradient(135deg, #ffe066 0%, #ffc233 50%, #fba91e 100%);
    box-shadow: 0 8px 16px rgba(251, 176, 52, 0.45),
                inset 0 1px 2px rgba(255, 255, 255, 0.6),
                inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────
   Shared page-level UI components (reused across views)
   ───────────────────────────────────────────────────── */

/* Full-width "Add New" button */
.add-mode-btn {
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Filter bar */
.filter-container {
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-container label {
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}
.filter-container input,
.filter-container select {
    padding: 9px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-size: 13px;
    height: 40px;
    background: white;
}
.filter-container input:focus,
.filter-container select:focus {
    outline: none;
    border-color: #667eea;
}
.filter-container .btn {
    margin-top: 0;
    align-self: center;
    width: auto;
}

/* Table wrapper card */
.mode-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

/* Data table */
.mode-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.mode-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}
.mode-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}
.mode-table tr:hover { background-color: rgba(102, 126, 234, 0.05); }

/* Inline add/edit form card */
.mode-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form action button row */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Checkbox field */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Yes / No indicators */
.text-yes { color: #38a169; font-weight: 700; }
.text-no  { color: #e53e3e; font-weight: 700; }

/* "Coming soon" placeholder card */
.placeholder-card {
    background: white;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    color: #718096;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hidden { display: none !important; }

/* === Scrollable Table Containers ===
   Ensures tables stay within their containers and show a horizontal
   scrollbar when the table width exceeds the container width.       */
.mode-list,
.list-container,
.table-scroll-wrapper {
    overflow-x: auto;
    width: 100%;
}

