/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    /* Background styles are applied dynamically */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #012069;
}

p {
    font-size: 18px;
    margin-bottom: 25px;
}

.logo {
    max-width: 200px;   
    margin: 20px auto; 
    margin-bottom: 40px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit; /* Set dynamically */
    opacity: inherit; /* Set dynamically */
    z-index: 0;
}

.maintenance-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #012069;
}

/* Admin Panel Styles */
.admin-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(1, 32, 105, 0.8);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: left 0.3s ease;
}

.admin-toggle:hover {
    background-color: rgba(1, 32, 105, 1);
}

.admin-panel {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.admin-panel.active {
    left: 0;
}

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

.admin-panel-title {
    font-size: 18px;
    font-weight: bold;
    color: #012069;
}

.admin-panel-close {
    width: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    display: flex;
    justify-content: center;
}

.admin-panel-close:hover {
    color: #fff;
}

.admin-panel-section {
    margin-bottom: 30px;
}

.admin-panel-section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #012069;
}

.password-form {
    margin-bottom: 20px;
    height: auto;
    opacity: 1;
}

input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

button, .login-link {
    display: inline-block;
    background-color: #012069;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

button:hover, .login-link:hover {
    background-color: #001237;
}

.toggle-form-btn {
    background: none;
    border: none;
    color: #012069;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    margin-top: 20px;
}

.toggle-form-btn:hover {
    color: #001237;
}

.login-link {
    margin-top: 10px;
    display: block;
    background-color: #555;
}

.login-link:hover {
    background-color: #333;
}

/* Custom Message Content Styling */
.custom-message {
    margin: 20px 0;
}

.custom-message img {
    max-width: 100%;
    height: auto;
}

.custom-message ul, .custom-message ol {
    text-align: left;
    display: inline-block;
    margin: 10px 0;
}

/* Background overlay for when admin panel is open */
.admin-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.admin-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Coming Soon Page Specific Styles */
.countdown-expired {
    font-size: 48px;
    color: #fff;
    text-align: center;
}
.coming-soon-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.countdown-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
    z-index: 1;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.countdown-boxes, .countdown-circles {
    display: flex;
    flex-direction: row; /* Default to row for desktop and tablet */
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Countdown Style 1 - Square */
.countdown-style1 .countdown-box {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #012069;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.countdown-style1 .countdown-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 2px;
}

.countdown-style1 .countdown-label {
    font-size: 12px;
    text-transform: uppercase;
}

/* Countdown Style 2 - Circle */
.countdown-style2 .countdown-circle {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
    /* border: 3px solid #012069; */
    color: #012069;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.countdown-style2 .countdown-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 2px;
}

.countdown-style2 .countdown-label {
    font-size: 14px;
    text-transform: uppercase;
}

/* Responsive styles */
@media (max-width: 768px) {
    .admin-panel {
        width: 280px;
        left: -280px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-boxes, .countdown-circles {
        gap: 10px;
    }
    
    .countdown-style1 .countdown-box,
    .countdown-style2 .countdown-circle {
        width: 90px;
        height: 90px;
    }
    
    .countdown-style1 .countdown-number,
    .countdown-style2 .countdown-number {
        font-size: 32px;
    }
    
    .countdown-style1 .countdown-label,
    .countdown-style2 .countdown-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Switch to column layout for mobile */
    .countdown-boxes, .countdown-circles {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown-style1 .countdown-box,
    .countdown-style2 .countdown-circle {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .countdown-style1 .countdown-number,
    .countdown-style2 .countdown-number {
        font-size: 48px;
    }
    
    .countdown-style1 .countdown-label,
    .countdown-style2 .countdown-label {
        font-size: 14px;
    }
    
    .container, .coming-soon-content {
        padding: 25px;
    }
}
