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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --bg-dark: #0f172a;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Landing Hero Section */
.hero-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.88) 100%),
                linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.7));
    backdrop-filter: blur(4px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    width: 90%;
    padding: 2.5rem 2rem;
    margin: 0 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card Featured Image */
.hero-card-img-container {
    width: 100%;
    max-width: 320px;
    height: 180px;
    margin: 0 auto 1.5rem auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
}

.hero-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card-img-container:hover .hero-card-img {
    transform: scale(1.05);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 600px;
}

/* Bouncing / Zoom-in Zoom-out Action Button (WhatsApp Green Gradient) */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
    position: relative;
    overflow: hidden;
    animation: slowZoomBounce 2.6s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    animation-play-state: paused;
    transform: scale(1.12);
    background: linear-gradient(135deg, #26e26d 0%, #0e9d8e 100%);
    box-shadow: 0 20px 42px 2px rgba(37, 211, 102, 0.75);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Slow Zoom-In & Zoom-Out Bouncing Animation Keyframes */
@keyframes slowZoomBounce {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 22px 42px 2px rgba(37, 211, 102, 0.8);
    }
}

/* Audio Player Floating Widget */
.audio-player-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.audio-player-widget:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.audio-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.audio-bar {
    width: 3px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    animation: soundWave 1.2s infinite ease-in-out alternate;
}

.audio-bars.paused .audio-bar {
    animation: none !important;
    height: 4px !important;
    background-color: var(--text-muted);
}

.audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-bar:nth-child(3) { animation-delay: 0.5s; }
.audio-bar:nth-child(4) { animation-delay: 0.2s; }

@keyframes soundWave {
    0% { height: 4px; }
    100% { height: 16px; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.admin-card {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.file-upload-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.img-preview {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #334155;
}

.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.btn-secondary {
    background: #334155;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #475569;
}

/* Click Analytics & Report Styles */
.analytics-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: #475569;
}

.stat-card.today {
    border-left: 4px solid #38bdf8;
}

.stat-card.yesterday {
    border-left: 4px solid #a855f7;
}

.stat-card.total {
    border-left: 4px solid #34d399;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.today .stat-icon {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.stat-card.yesterday .stat-icon {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.stat-card.total .stat-icon {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.report-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #334155;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.report-table th {
    background: #0f172a;
    color: var(--text-muted);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid #334155;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.report-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #1e293b;
    color: var(--text-main);
}

.report-table tr:last-child td {
    border-bottom: none;
}

.report-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.report-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
}

.badge-today {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-yesterday {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-date {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #334155;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    border-radius: 10px;
    transition: width 0.4s ease;
}

