/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

/* ===== WAVE ANIMATION ===== */
@keyframes wave {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(25px);
    }
    100% {
        transform: translateX(50px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

.waves-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 60"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.3);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></linearGradient></defs><path d="M0,30 Q300,0 600,30 T1200,30 L1200,60 L0,60 Z" fill="url(%23grad)" /></svg>') repeat-x;
    background-size: 600px 100px;
    animation: wave 15s linear infinite;
    opacity: 0.8;
}

.wave:nth-child(1) {
    bottom: 10px;
    animation: wave 15s linear infinite;
    opacity: 1;
}

.wave:nth-child(2) {
    bottom: 5px;
    animation: wave 10s linear infinite reverse;
    opacity: 0.6;
}

.wave:nth-child(3) {
    bottom: 0px;
    animation: wave 20s linear infinite;
    opacity: 0.4;
}

.wave-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeInDown 1s ease-out;
}

.wave-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.wave-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.35) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideInDown 0.5s ease-out;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0.5rem 0.75rem;
    border-radius: 0.618rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.nav-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-4px);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-success:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: slideInUp 0.5s ease-out;
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.4s; }

.error-message {
    color: #f5576c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInUp 0.6s ease-out;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e8e8f0;
    border-radius: 16px;
    padding: 24px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.stats-card:hover {
    transform: translateY(-6px);
    border-left-color: #764ba2;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.event-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid #667eea;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
    border-top-color: #764ba2;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .icon { animation-delay: 0.2s; }
.feature-card:nth-child(3) .icon { animation-delay: 0.4s; }
.feature-card:nth-child(4) .icon { animation-delay: 0.6s; }
.feature-card:nth-child(5) .icon { animation-delay: 0.8s; }
.feature-card:nth-child(6) .icon { animation-delay: 1s; }

/* ===== BADGES & BADGES ===== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideInUp 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5576c;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #4facfe;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTIONS ===== */
section {
    padding: 60px 0;
    animation: slideInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

/* ===== DASHBOARD GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .wave-content h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== ANIMATIONS ON SCROLL ===== */
.fade-in {
    animation: fadeInDown 0.6s ease-out forwards;
    opacity: 0;
}

.slide-up {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    cursor: pointer;
    border: none;
    background: inherit;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-left: 28px;
    font-weight: 600;
}

.dropdown-menu hr {
    margin: 0;
    border: none;
    background: none;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CANVAS RESPONSIVE ===== */
canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .wave-content h2 {
        font-size: 2rem;
    }

    .wave-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 16px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .wave-content h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-card {
        padding: 16px;
    }

    .btn {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .feature-card {
        padding: 32px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    footer,
    .btn,
    canvas {
        display: none;
    }
}
