@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    
    /* Fluid typography rules based on screen size */
    --font-heading: clamp(2.2rem, 6vw + 0.5rem, 4.5rem);
    --font-subheading: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
    --font-body: clamp(0.95rem, 1vw + 0.7rem, 1.15rem);
    --font-timer-num: clamp(2rem, 5vw + 0.5rem, 3.5rem);
    --font-timer-lbl: clamp(0.75rem, 1vw + 0.5rem, 0.9rem);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Beautiful dynamic background */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.full-bleed-container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Main Hero section */
.hero-title {
    font-size: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #1e293b 30%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: var(--font-subheading);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Countdown container */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.countdown-box {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 1.5rem;
    min-width: 110px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.2);
}

.countdown-number {
    font-size: var(--font-timer-num);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    display: block;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: var(--font-timer-lbl);
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Subscription Form container */
.subscription-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.subscription-card {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.form-control-custom {
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    outline: none;
}

.btn-custom {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    padding: 0.85rem 1.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
    color: #ffffff;
}

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

/* Footer style */
footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Float subtle elements */
.floating-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    animation: floatAnimation 8s ease-in-out infinite;
    pointer-events: none;
}

.accent-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.accent-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatAnimation {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Feedback alert stylings */
.alert-custom {
    display: none;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease forwards;
}

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

/* Custom responsiveness tweaks */
@media (max-width: 576px) {
    .countdown-wrapper {
        gap: 0.75rem;
    }
    .countdown-box {
        min-width: 80px;
        padding: 1rem 0.75rem;
    }
    .subscription-card {
        padding: 1.5rem;
    }
}

/* Authentication module styles */
.auth-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-pills .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.quick-fill-btn {
    font-size: 0.85rem;
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.04);
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-fill-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Dashboard module styles */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.05);
}

.role-badge {
    font-size: 0.8rem;
    padding: 0.35em 0.8em;
    border-radius: 50rem;
    font-weight: 600;
}

.role-badge-admin {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.role-badge-user {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.table-custom th {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom-width: 1px;
    padding: 1rem;
}

.table-custom td {
    vertical-align: middle;
    padding: 1rem;
    color: #334155;
}

.form-select-custom {
    border-radius: 0.5rem;
    padding: 0.35rem 1.75rem 0.35rem 0.75rem;
    font-size: 0.9rem;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.form-select-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

