body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #a3d3db;
    color: #333;
    line-height: 1.6;
}

button:hover, .button:hover {
    opacity: 0.98;
    box-shadow: 0px 2px 5px 1px rgb(0 0 0 / 15%)
}

header h1 a:hover {opacity: 0.85;}
 
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    color: #2b566b; 
    flex-grow: 1; 
}

header h1 a.header-title-link {
    color: inherit; 
    text-decoration: none;
    cursor: pointer;
}

header h1 a.header-title-link:hover {
    color: #4684a3;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions > form {
    margin-bottom: 0;
}

/* DataTables specific adjustments */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px; /* Add space below Show Entries and Search bar */
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px !important; /* Smaller padding */
    margin-left: 2px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important; /* Light border */
    background-color: #f8f9fa !important; /* Light background */
    background: #f8f9fa !important; /* Ensure solid background overrides gradients */
    color: #333 !important; /* Darker text for readability */
    font-size: 0.85em !important; /* Slightly smaller font */
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate a.paginate_button.current,
.dataTables_wrapper .dataTables_paginate a.paginate_button.current:hover {
    background-color: #7BAFBF !important; /* Lighter teal for active page */
    background: #7BAFBF !important;       /* Solid background */
    color: white !important;           /* White text */
    border-color: #7BAFBF !important;     /* Matching border */
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover {
    background-color: #cccccc !important; /* Medium-dark grey for hover */
    background: #cccccc !important;       /* Solid background */
    color: #000000 !important;           /* Black text */
    border: 1px solid #aaaaaa !important; /* Matching grey border */
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background-color: #e9ecef !important;
    background: #e9ecef !important; /* Solid background */
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    cursor: default !important;
}

main > section {
    margin-top: 30px; 
}

/* Consolidated Button Styles */
.button,
button,
.auto-refresh-settings form button, 
.login-form button[type="submit"],
.button-primary,
.logout-button {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.9em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: normal;
}

/* Primary Button Styles */
.button-primary, 
.auto-refresh-settings form button, 
.login-form button[type="submit"],
.logout-button,
.header-actions .logout-button,
.header-actions .button-danger {
    background-color: #398D9B;
    color: white;
    border-color: #398D9B;
}

.button-primary:hover,
.auto-refresh-settings form button:hover,
.login-form button[type="submit"]:hover,
.logout-button:hover,
.header-actions .logout-button:hover,
.header-actions .button-danger:hover {
    background-color: #43656B;
    border-color: #43656B;
}

/* Danger Button Styles */
.button-danger {
    background-color: #d9534f;
    color: white;
    border-color: #d43f3a;
}

.button-danger:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

/* Login Form */
main.login-form { /* Styles for the main container of the login form */
    max-width: 400px;
    margin: 50px auto; /* Centers the form on the page */
    padding: 30px;
    background-color: #ffffff; /* Can be white or transparent if page bg is good */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center; /* Center h2 and button */
}

.login-form h2 {
    margin-bottom: 18px;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 18px;
    padding: 0 5px;
    text-align: left; /* Align labels and inputs to the left */
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for width calculation */
    font-size: 1em;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #398D9B; /* Highlight on focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(95, 122, 157, 0.2);
}

.login-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 4px; 
}

.login-form .error-message {
    color: #D8000C; /* Red for errors */
}

/* Auto-Refresh Settings */
.auto-refresh-settings form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-refresh-settings label {
    font-weight: bold;
}

.auto-refresh-settings input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 80px;
}

/* General Form Styling */
form {
    margin-bottom: 20px;
}

/* Consolidated Table Styles */
table {
    width: 100%;
    border: 1px solid #ddd;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 0.85em;
}

table th {
    background-color: #e9f5f7;
    color: #2b566b;
    font-weight: 600;
    font-size: 0.9em;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #e1fbff;
}

/* Live Visitors Table Specifics */
.live-visitors table td {
    vertical-align: top;
}

.live-visitors table td[title] {
    cursor: help;
}

/* Raw Log Display */
.raw-log-display pre {
    background-color: #eef1f3; 
    padding: 15px;
    border: 1px solid #d1d8dd;
    border-radius: 5px;
    white-space: pre-wrap;      
    word-wrap: break-word;      
    max-height: 400px;          
    overflow-y: auto;           
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
}

/* Detailed Ping Log Display */
.detailed-ping-log-display .url-cell {
    max-width: 270px;  /* Aligned with DataTables width for this specific table's URL column */
    overflow-wrap: break-word; /* Standard property for wrapping long words */
    word-wrap: break-word;     /* Alias for older browser compatibility */
    word-break: break-all;     /* More aggressive breaking, like token-cell */
}

/* Table Cell Styles with Word Wrapping */
.live-visitors .url-cell,
.live-visitor-data-display .url-cell {
    max-width: 270px;
    overflow-wrap: break-word;
    word-break: break-all;
}

.honeypot-log-display .ua-cell,
.live-visitors .ua-cell,
.live-visitor-data-display .ua-cell,
.detailed-ping-log-display .ua-cell {
    max-width: 250px;
    overflow-wrap: break-word;
    word-break: normal;
}

.honeypot-log-display .token-cell {
    max-width: 200px;
    overflow-wrap: break-word;
    word-break: break-all;
}

/* Table Container for scrollable tables */
.table-container {
    margin-bottom: 20px;
    width: 100%; /* Ensure the container takes full width */
}

/* DataTables specific adjustments for full width */
.dataTables_wrapper {
    width: 100%;
}

table.dataTable {
    width: 100% !important;
}

.dataTables_scrollHead,
.dataTables_scrollBody,
.dataTables_scrollFoot {
    width: 100% !important;
}

.dataTables_scrollHeadInner,
.dataTables_scrollFootInner {
    width: 100% !important;
}

.dataTables_scrollHeadInner table.dataTable,
.dataTables_scrollFootInner table.dataTable {
    width: 100% !important;
    margin: 0 !important; /* Reset margins often added by DT for these inner tables */
}

/* Styling for Historical Stats Table internal borders */
#historicalStatsTable th {
    border-bottom: 1px solid #ddd; /* Line below header cells */
}

#historicalStatsTable td {
    border-bottom: 1px solid #ddd; /* Line below data cells */
}

#historicalStatsTable tr:last-child td {
    border-bottom: none; /* Remove bottom border from last row's cells */
}

/* DataTables Row Striping */
table.dataTable tbody tr.odd td {
    background-color: #ffffff; /* White for odd rows */
}

table.dataTable tbody tr.even td {
    background-color: #f2f2f2; /* A light grey for even rows */
}

/* Optional: Style for row hover */
table.dataTable tbody tr:hover td {
    background-color: #e1fbff; /* Match historical stats hover */
}

/* Admin Login Form Styles */
#admin-login-form .form-group label {
    font-size: 1.0em;
    display: block;
    margin-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    header {
        flex-direction: column;
        gap: 10px;
    }

    .auto-refresh-settings form {
        flex-direction: column;
        align-items: flex-start;
    }

    .auto-refresh-settings input[type="number"] {
        width: 100%;
        box-sizing: border-box;
    }

    /* Only apply to non-DataTables tables */
    table:not(.dataTable), 
    table:not(.dataTable) thead, 
    table:not(.dataTable) tbody, 
    table:not(.dataTable) th, 
    table:not(.dataTable) td, 
    table:not(.dataTable) tr {
        display: block;
    }

    table:not(.dataTable) thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table:not(.dataTable) tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    table:not(.dataTable) td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: right;
    }

    table:not(.dataTable) td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /* Assign data-label for responsive table headers */
    .historical-stats table:not(.dataTable) td:nth-of-type(1):before { content: "Metric"; }
    .historical-stats table:not(.dataTable) td:nth-of-type(2):before { content: "Value"; }

    .live-visitors table:not(.dataTable) td:nth-of-type(1):before { content: "IP Address"; }
    .live-visitors table:not(.dataTable) td:nth-of-type(2):before { content: "First Seen"; }
    .live-visitors table:not(.dataTable) td:nth-of-type(3):before { content: "Last Seen"; }
    .live-visitors table:not(.dataTable) td:nth-of-type(4):before { content: "User Agent"; }
    .live-visitors table:not(.dataTable) td:nth-of-type(5):before { content: "Current Page"; }
    .live-visitors table:not(.dataTable) td:nth-of-type(6):before { content: "Visit Count"; }
    .live-visitors table:not(.dataTable) td:nth-of-type(7):before { content: "Location"; }
}

/* General Button Styling (can be overridden by more specific button classes) */
button, .button {
    background-color: #4CAF50; 
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: #45a049;
}

/* Header actions button styles are now consolidated in the button styles section */


/* Styles for the honeypot field to hide it from users */
.fg-hp,
.fg-hp label,
.fg-hp input.in-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important; /* Make it effectively invisible and non-interactable */
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important; /* Prevent any interaction */
}

/* Body no-scroll class */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal Header */
.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #494949;
    color: white;
    position: relative;
    z-index: 2;
    margin: 0;
    min-height: 60px; /* Ensure consistent height */
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0; /* Add small padding to help with vertical centering */
}

.modal-header h3 i {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Modal Close Button */
.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0px 0px 5px 0px;
    margin: 0;
    position: relative;
    top: -10px;
    right: -5px;
    border-radius: 6px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: none;
}

/* Modal Body */
.modal-body {
    padding: 0;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    margin: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 16px 24px;
    margin: 0 1px;
    cursor: pointer;
    font-size: 14px;
    color: #5a6a7f;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    outline: none;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.tab-button i {
    font-size: 14px;
    transition: color 0.2s ease;
}

.tab-button:hover {
    color: #3A4F6A;
    background-color: rgba(58, 79, 106, 0.05);
}

.tab-button.active {
    color: #3A4F6A;
    border-bottom-color: #3A4F6A;
    font-weight: 600;
    background-color: rgba(58, 79, 106, 0.03);
    box-shadow: 0 2px 4px -1px rgba(58, 79, 106, 0.1);
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: transparent;
    transition: background 0.2s ease;
}

.tab-button:hover::after {
    background: rgba(58, 79, 106, 0.2);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px 15px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    margin-bottom: 70px; /* Space for fixed buttons */
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Scrollbar styling for tab content */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Settings Sections */
.settings-section {
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 10px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 1px 0;
    line-height: 1.3;
}

.modal-content .form-group input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content select,
.modal-content textarea {
    width: calc(100% - 24px); /* Account for padding */
    max-width: 100%;
    padding: 10px 12px;
    margin: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #212529;
    box-sizing: border-box;
}

/* Hover state for form inputs */
.modal-content .form-group input[type="text"]:hover,
.modal-content input[type="number"]:hover,
.modal-content input[type="email"]:hover,
.modal-content input[type="password"]:hover,
.modal-content select:hover,
.modal-content textarea:hover {
    border-color: #9ca3af;
}

.modal-content .form-group input[type="text"]:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="password"]:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
    outline: none;
}

.form-helper-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 1px 0 0 2px;
    line-height: 1.3;
}

.toggle-label {
    font-weight: 500;
    color: #4a5568;
    margin: 0;
    padding: 4px 0;
    line-height: 1.4;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toggle-description {
    font-size: 0.85em;
    color: #718096;
    margin: 2px 0 0;
    line-height: 1.4;
    flex: 1 1 100%;
    display: block;
}

/* Input with Unit */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit input {
    flex: 1;
}

.input-with-unit .unit {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

/* Toggle Switches */
.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    gap: 15px;
    min-height: 56px;
}

.toggle-container:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.toggle-container input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 24px;
    background: #cbd5e0;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin: 0;
}

.toggle-switch:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .toggle-switch {
    background: var(--action-button-bg, #3A4F6A);
}

input:checked + .toggle-switch:hover {
    background: var(--action-button-hover, #4A5A7A);
}

input:checked + .toggle-switch:before {
    transform: translateX(24px);
}

.toggle-label {
    flex: 1;
}

.toggle-label strong {
    display: block;
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.toggle-label small {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Auto-Refresh Section */
.auto-refresh-container {
    margin: 15px 0px -15px 2px;
}

.auto-refresh-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.auto-refresh-status,
.auto-refresh-form-label {
    line-height: 1.5;
    margin: 0;
}

.auto-refresh-form {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.auto-refresh-input {
    width: 55px;
    text-align: right;
    padding: 5px 3px 4px 0px;
    
}

.auto-refresh-button {
    margin: 0px 2px 0px 5px;
    padding: 5px 16px;
    height: 34px;
    min-width: 90px;
}

/* Modal Footer */
.settings-actions {
    padding: 18px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* Success/Error Messages */
.settings-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 30px 20px 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

:root {
    --primary-color: #3A4F6A;
    --primary-hover: #2c3e50;
    --text-color: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --input-focus: #a0c5f7;
    --toggle-bg: #cbd5e0;
    --toggle-active: #3A4F6A;
    --toggle-thumb: #ffffff;
    --modal-bg: #ffffff;
    --modal-header: #494949;
    --modal-text: #2d3748;
    --modal-border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}