﻿/*=========================================================
    AAMA SAMMAN DIWAS
=========================================================*/

/*========================
    COLOR PALETTE
========================*/

:root {
    /* Primary */
    --primary: #C62828;
    --primary-dark: #8E1B1B;
    --primary-light: #FDECEC;
    /* Accent */
    --accent: #F57C00;
    --accent-light: #FFF3E0;
    /* Success */
    --success: #2E7D32;
    /* Background */
    --bg: #FFF8F2;
    /* Card */
    --card: #FFFFFF;
    /* Text */
    --text: #222222;
    --muted: #6B7280;
    /* Border */
    --border: #E8DCCF;
    /* Shadows */
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    /* Compatibility */
    --background: var(--bg);
    --white: var(--card);
    --text-dark: var(--text);
    --text-light: var(--muted);
}

/*========================
    BODY
========================*/


body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}
/*========================
    LINKS
========================*/

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        color: var(--primary-dark);
    }

/*========================
    HEADER
========================*/

.app-header {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.app-logo {
    width: 70px;
    margin-bottom: 10px;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.app-subtitle {
    opacity: .9;
    font-size: .95rem;
}

/*========================
    HERO SECTION
========================*/

.hero-section {
    background: var(--card);
    border-radius: 20px;
    padding: 80px 40px;
    box-shadow: var(--shadow);
}

.hero-title {
    color: var(--primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-text {
    color: var(--muted);
    margin-bottom: 35px;
}

/*========================
    BUTTONS
========================*/

.btn-primary,
.btn-participate {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    min-height: 52px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: .3s;
}

    .btn-primary:hover,
    .btn-participate:hover {
        background: var(--primary-dark);
        color: white;
        transform: translateY(-2px);
    }

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
}

    .btn-outline-primary:hover {
        background: var(--primary);
        color: white;
    }

/*========================
    CARDS
========================*/

.card,
.registration-card,
.prize-card {
    background: var(--card);
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.registration-card {
    max-width: 650px;
    margin: auto;
    padding: 35px;
}

.prize-card {
    transition: .3s;
}

    .prize-card:hover {
        transform: translateY(-6px);
    }

.prize-icon {
    font-size: 3rem;
    color: var(--accent);
}

.prize-title {
    font-weight: 700;
    margin-top: 15px;
}

.prize-amount {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.6rem;
}

/*========================
    FORMS
========================*/

.form-label {
    font-weight: 600;
    color: var(--text);
}

.form-control,
.form-select {
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .8rem 1rem;
    background: #fff;
    transition: all .25s ease;
    box-shadow: none;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 .18rem rgba(198,40,40,.12);
    transform: translateY(-1px);
}
.form-text {
    color: var(--muted);
}

/*========================
    BADGES
========================*/

.badge.bg-primary {
    background: var(--primary) !important;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--accent) !important;
}

/*========================
    ALERTS
========================*/

.alert-success {
    border: none;
    border-left: 5px solid var(--success);
}

.alert-danger {
    border: none;
    border-left: 5px solid var(--primary);
}

.alert-warning {
    border: none;
    border-left: 5px solid var(--accent);
}

/*========================
    TABLES
========================*/

.table {
    background: white;
}

    .table thead {
        background: var(--primary);
        color: white;
    }

        .table thead th {
            border: none;
        }

.table-hover tbody tr:hover {
    background: var(--primary-light);
}

/*========================
    FOOTER
========================*/

footer {
    color: var(--muted);
    font-size: .9rem;
    padding: 20px 0;
}

/*========================
    UTILITIES
========================*/

.section-title {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 25px;
}

.shadow-soft {
    box-shadow: var(--shadow);
}

.rounded-xl {
    border-radius: 20px;
}

/*========================
    MOBILE
========================*/

@media (max-width:768px) {

    .app-title {
        font-size: 1.4rem;
    }

    .app-subtitle {
        font-size: .85rem;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .registration-card {
        padding: 20px;
    }

    .btn-primary,
    .btn-participate {
        width: 100%;
    }

    .prize-icon {
        font-size: 2.5rem;
    }

    .prize-amount {
        font-size: 1.35rem;
    }
}
.registration-card {
    position: relative;
    overflow: hidden;
}

    .registration-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: var(--primary);
    }

::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

.camera-box {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--border);
    background: #000;
}
#preview {
    border-color: var(--success);
}