/* ADMIN DASHBOARD OVERRIDE – MUST BE AT THE VERY TOP */
body.admin-page,
body:has(#admin-container) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    display: block !important;
    justify-content: unset !important;
    align-items: unset !important;
    height: auto !important;
    overflow: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: mintcream;
    background: linear-gradient(360deg, #1a1a40, #4b0082, #000000);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loadingOverlay img {
    width: 100px;
    height: auto;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.container {
    display: flex;
    flex-direction: row;
    width: 75%;
    height: 80%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.image {
    flex: 1;
    overflow: hidden;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.loginHeader {
    text-align: center;
    margin-bottom: 20px;
}

.loginHeader h1 {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(75, 0, 130, 0.8);
    margin: 0;
}

.loginHeader p {
    font-size: 1rem;
    color: #d3d3d3;
    margin: 5px 0 0;
}

.gradient {
    background: linear-gradient(to right,
            #00aaa7,
            #7e42a7,
            #6600c5,
            #6070fd,
            #2a46ff,
            #0099ff,
            #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animatie-Gradient 2.5s linear infinite;
    font-size: 1.8rem;
    text-align: center;
    padding: 20px;
    font-weight: bold;

}

@keyframes animatie-Gradient {
    to {
        background-position: 200%;
    }
}


#username,
#password {
    border: 2px solid #e2e8f0;
    border-radius: 9px;
    /* font-size: 1rem; */
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

#username:focus,
#password:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.content {
    position: relative;
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(188, 185, 185, 0));
    backdrop-filter: blur(50px);
    border-radius: 15px;
    border-image: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)) 1;
}

.loginContent {
    background: linear-gradient(360deg, rgba(255, 255, 255, 0.9), #4b0082, #088fa3);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 50%;
    max-width: 400px;
    margin: auto;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    /* padding-top: 10px; */
}

.toggle-password-icon {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-password-icon:hover {
    color: #4b0082;
}

.loginButton {
    background: linear-gradient(135deg, #4b0082, #088fa3);
    box-shadow: 0 0 15px rgba(75, 0, 130, 0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    margin: 10px;
}

.loginButton:hover {
    box-shadow: 0 0 25px rgba(75, 0, 130, 0.8);
    transform: translateY(-2px);
}

#logoutContainer {
    position: absolute;
    top: 15px;
    right: 15px;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.user-menu {
    position: relative;
    display: inline-block;
}

#logoutContainer.showLogout {
    display: flex !important;
}

#logoutContainer:hover #logout {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#logout {
    border-radius: 20px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all 0.4s ease;
    white-space: nowrap;
    margin-top: 8px;
    width: 100%;
    text-align: center;
}


#logout:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
    transform: translateY(-2px);
}

#logout::before {
    /* content: "✕"; */
    font-weight: bold;
}

.userInfo {
    display: flex;
    align-items: center;
    gap: 6px;
}

#userInfoToggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #088fa3, #4b0082);
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: white;
    color: #f0ededce;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#userInfoToggle i {
    font-size: 1.4rem;
    color: #4b0082;
}

#userInfoToggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.userInfo i {
    font-size: 1.4rem;
    color: #4b0082;
}

#loggedInUsername {
    font-weight: 500;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}


#mainContent,
#loginSection {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mainContent.visible,
#loginSection.visible {
    opacity: 1;
}



.content h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

input,
textarea,
button {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

textarea::placeholder {
    color: #999;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
}

#message {
    font-family: Arial, Helvetica, sans-serif;
    width: 95%;
}

button {
    background-color: #4b0082;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2e0057;
}

#status {
    margin-top: 0;
    color: #155724;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: auto;
    background-color: #d4edda;
    text-align: center;
    border-radius: 0 0 4px 4px;
    padding: 10px;
    z-index: 1000;
    display: none;
    transition: opacity 0.5s ease;
}

#status.visible {
    display: block;
}

#error {
    position: fixed;
    margin-top: 0px;
    max-width: 400px;
    width: auto;
    background-color: #f8d7da;
    text-align: center;
    border-radius: 0 0 4px 4px;
    padding: 10px;
    z-index: 1000;
    display: none;
    transition: opacity 0.5s ease;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: red;
}

#error.visible {
    display: block;
}

#viewHistory {
    width: 50%;
    max-width: 400px;
    margin: 10px auto;
    text-align: center;
    display: block;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

#viewHistory:hover {
    background-color: #218838;
    transition: color 0.4s ease, transform 0.4s ease;
    box-shadow: 0 0 15px rgba(75, 0, 130, 0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#quotaBar {
    max-width: 400px;
    margin: auto;
    padding: 8px;
    background: rgba(75, 0, 130, 0.2);
    border-radius: 8px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.quotaProgress {
    height: 6px;
    background: #333;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

#quotaFill {
    height: 100%;
    background: #4b0082;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 5px;
}

#quotaFill.unlimited {
    background: #28a745 !important;
}

#historyData tbody tr:hover {
    background: rgba(255, 255, 255, .1);
}

.status-success {
    font-weight: bold;
    color: green;
}

.status-partial {
    font-weight: bold;
    color: orange;
}

.status-failed {
    font-weight: bold;
    color: red;
}

#historyData th,
#historyData td {
    padding: 8px;
    border: 1px solid #ddd;
}

.appFooter {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(122, 122, 212, 0.168);
    backdrop-filter: blur(8px);
    color: #e0e0e0;
    font-size: 0.85rem;
    text-align: center;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.appFooter p {
    margin: 0;
    font-weight: 500;
}

.social-links a {
    color: #e0e0e0;
    font-size: 1rem;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease, transform 0.2s ease;
    background: transparent;
    border-radius: 50%;
}

.social-links a:hover {
    color: transparent;
    background: linear-gradient(260deg, #4b0082, #088fa3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#previewModal,
#historyModal,
#skipModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#previewModal .modal-content,
#skipModal .modal-content,
#historyModal .modal-content {
    background: linear-gradient(260deg, #4b0082, #088fa3);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow: auto;
}

#previewModal h3,
#skipModal h3,
#historyModal h3 {
    margin: 0 0 10px;
    color: #4b0082;
}

#previewTable th,
#skipTable th,
#historyData th,
#previewTable td,
#historyData td,
#skipTable td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#previewTable th,
#skipTable th,
#historyData th {
    background: #1fa5ae;
}

.valid {
    color: #28a745;
}

.invalid {
    color: #dc3545;
}


/* ADMIN PANEL – CLEAN & PROFESSIONAL */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header h1 {
    color: #4b0082;
    margin: 0;
    font-size: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    flex: 1;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #4b0082, #088fa3);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4);
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 1000;
}

/* In styles.css */
code:contains("INFORM") {
    color: #28a745;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 18px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(0, 212, 255, 0.2);
    color: #fff;
    border-left-color: #00d4ff;
    padding-left: 35px;
}

.sidebar-menu i {
    width: 30px;
    font-size: 1.2rem;
}

.text-danger {
    background: linear-gradient(135deg, #dc3545, #921824);
}

.text-danger:hover {
    background: #dc2626 !important;
    transition: all 0.3s ease;
}

.card {
    background: rgba(255, 255, 255, 0.103);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #00d4ff;
    padding-bottom: 12px;
    margin-top: 0;
    position: relative;
}

.card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.form-grid {
    display: grid;
    gap: 20px;
    max-width: 70%;
    margin: 0 auto;
    align-items: end;
}

.form-grid input,
.form-grid textarea {
    background: rgba(255, 255, 255, 0.15);
    /* color: #fff !important; */
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.form-grid textarea ::placeholder,
.form-grid input ::placeholder {
    /* color: #f2f0f0; */
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: #4f6ced;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

#adminMessage {
    height: 150px;
    resize: vertical;
}

#adminCharInfo {
    font-weight: bold;
    color: #088fa3;
    font-size: 1rem;
    margin: 10px 0;
}

table {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}

th {
    background: #4e016a;
    padding: 15px;
    text-align: left;
}

td {
    padding: 5px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tools {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.search-box {
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    width: 380px;
    max-width: 100%;
    font-size: 1rem;
}

.export-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
}

#createStatus,
#adminSendStatus {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
}

.status-success {
    font-weight: bold;
    color: green;
}

.status-error {
    color: #721c24;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 5px;
    right: 20px;
    z-index: 10000;
    background: linear-gradient(135deg, #4b0082, #088fa3);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10%;
    font-size: 1.5rem;
    cursor: pointer;
    width: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 20px 16px;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: transform 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-6px);
}

.stat-card.green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.stat-card.orange {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}

.stat-card.purple {
    background: linear-gradient(135deg, #a55eea, #c56cf0);
}

.stat-card h3 {
    margin: 0 0 8px 0;
    opacity: 0.9;
    font-weight: 500;
    font-size: 1rem;
}

.stat-card h1 {
    margin: 0;
    font-size: 2.6rem;
    font-weight: bold;
}

.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 20px;
}

.chart-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-box h3 {
    color: #00d4ff;
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.stats-footer {
    text-align: center;
    margin-top: 30px;
    color: #aaa;
    font-size: 0.9rem;
}

#globalStatus {
    position: fixed;
    top: 20px;
    transform: translateX(-50%) translateY(-20%);
    left: 50%;
    min-width: 300px;
    max-width: 500px;
    width: fit-content;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.4s ease;
}

#globalStatus.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#globalStatus.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

#globalStatus.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

#globalStatus button {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

#globalStatus button:hover {
    background: rgba(255, 255, 255, 0.3);
}

#copyCredentialsBtn.copied {
    background: #218838 !important;
    transform: scale(1.05);
}

.login-footer-note {
    font-size: 13px;
    color: #555;
    text-align: center;
    margin-top: 12px;
}

.admin-contact {
    white-space: nowrap;
}

.admin-link {
    font-weight: 600;
    text-decoration: underline;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.admin-link.email {
    color: #667eea;
}

.admin-link.whatsapp {
    color: #25D366; 
}

.admin-link:hover {
    border-bottom-color: currentColor;
}


/* @media (max-width: 1100px) {} */

@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 10px 0;
    }

    .sidebar-logo,
    .sidebar-menu span {
        display: none;
    }

    .sidebar-menu a {
        text-align: center;
        padding: 20px 0;
    }

    .main-content {
        margin-left: 80px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card h1 {
        font-size: 2.2rem;
    }

    .chart-container {
        grid-template-columns: 1fr;
    }

    .chart-box {
        padding: 18px;
        width: auto;
    }

}

@media screen and (max-width: 768px) {
    body {
        background: url('images/full_bulk_sms.png') no-repeat center center fixed;
        background-size: cover;
        /* Make the image cover the entire page */
    }

    .container {
        flex-direction: column;
        width: 90%;
        height: auto;
        backdrop-filter: blur(10px);
    }

    .loginContent {
        width: 90%;
        padding: 20px;
    }

    .loginHeader h1 {
        font-size: 1.5rem;
    }

    .loginHeader p {
        font-size: 0.9rem;
    }

    .password-container input {
        width: 90%;
        padding-top: 10px;
    }

    .toggle-password-icon {
        right: 5%;
    }

    #logoutContainer {
        top: 10px;
        right: 10px;
        padding: 10px;
    }

    #logoutContainer:hover #logout {
        opacity: 1;
        transform: translateY(0);
    }

    #userInfoToggle {
        border-radius: 30px;
        padding: 12px 16px;
    }

    #logoutDropdown {
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .user-menu:hover #logoutDropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    input,
    textarea,
    button {
        width: 90%;
    }

    .image {
        display: none;
    }

    .content {
        width: 100%;
        padding: 20px;
        border-radius: 10px;
    }

    #message {
        width: 85%;
    }

    .appFooter {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
        padding: 10px;
    }

    .socialLinks a {
        font-size: 1.1rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        transition: left 0.35s ease;
        z-index: 9999;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block !important;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 10000;
        background: linear-gradient(135deg, #667eea, #764ba2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 7px;
        font-size: 1.4rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        background: #4b0082;
        transform: scale(1.1);
    }

    #globalStatus {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: 10px !important;
        min-width: 260px;
        width: auto;
        max-width: 95%;
        padding-left: 16px;
        padding-right: 16px;
    }

    #status,
    #error {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 40px) !important;
        max-width: 95% !important;
    }

    .admin-container table,
    #previewModal .modal-content table,
    #skipModal .modal-content table,
    #historyModal .modal-content table,
    table {
        display: block;
        width: 90%;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    #previewModal .modal-content,
    #skipModal .modal-content,
    #historyModal .modal-content {
        max-height: 70vh !important;
        overflow: auto !important;
        box-sizing: border-box;
    }

    .search-box {
        width: 90% !important;
    }

    .chart-box {
        padding: 18px;
        width: auto;
    }

}

@media (max-width: 480px) {
    #logoutContainer.showLogout #logout {
        opacity: 1;
        transform: none;
        width: 100%;
        margin-top: 8px;
        pointer-events: auto;
    }

    #logoutContainer {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
        border-radius: 10px;
        right: 10px;
        top: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}