/* assets/css/style.css */
:root {
    --primary-peach: #E8A796;
    --secondary-peach: #F5D5C8;
    --cream: #FFF8F0;
    --warm-yellow: #FFE5B4;
    --text-dark: #5C4033;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #FFE5B4 0%, #F5D5C8 50%, #FFE5B4 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Navbar Custom */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(232, 167, 150, 0.1);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-peach) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--text-dark) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-peach) !important;
}

.nav-link:not(.dropdown-toggle)::after,
.nav-link.dropdown-toggle::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-peach);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link.dropdown-toggle:hover::before {
    width: 80%;
}

/* Card Custom */
.card-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 32px rgba(232, 167, 150, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(232, 167, 150, 0.3);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-peach), var(--secondary-peach));
    color: white;
    padding: 1.5rem;
    border: none;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Button Custom */
.btn-peach {
    background: linear-gradient(135deg, var(--primary-peach), var(--secondary-peach));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 167, 150, 0.3);
}

.btn-peach:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 167, 150, 0.4);
    color: white;
}

.btn-outline-peach {
    border: 2px solid var(--primary-peach);
    color: var(--primary-peach);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-peach:hover {
    background: var(--primary-peach);
    color: white;
    transform: translateY(-2px);
}

/* Form Custom */
.form-control-custom {
    border: 2px solid var(--secondary-peach);
    border-radius: 15px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control-custom:focus {
    border-color: var(--primary-peach);
    box-shadow: 0 0 0 0.2rem rgba(232, 167, 150, 0.25);
    background-color: white;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 213, 200, 0.5));
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: none;
    box-shadow: 0 8px 32px rgba(232, 167, 150, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(232, 167, 150, 0.3);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-peach);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Landing Page Cards */
.track-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(232, 167, 150, 0.3);
}

.track-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--primary-peach);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-peach);
}

.feature-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 1rem;
}

.feature-desc {
    color: var(--text-dark);
    margin: 0;
}

/* Table Custom */
.table-custom {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-peach), var(--secondary-peach));
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-custom tbody tr {
    transition: all 0.3s ease;
}

.table-custom tbody tr:hover {
    background: rgba(232, 167, 150, 0.1);
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badge Custom */
.badge-winner {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.badge-draw {
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Login/Register Page */
.auth-container {
    min-height: 100vh;
    display: flex;
    padding: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(232, 167, 150, 0.3);
    max-width: 450px;
    width: 100%;
    margin: auto;
}

.auth-title {
    color: var(--primary-peach);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-peach);
}

/* Container Custom */
.container-custom {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--primary-peach);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-custom {
        padding: 1rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2.5rem 2rem;
        margin: auto !important;
        border-radius: 30px;
    }

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

    .auth-logo {
        width: 70px;
        height: 70px;
    }

    .container-custom {
        padding: 1rem;
    }

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

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .track-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .track-logo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .track-card h3 {
        font-size: 1.4rem;
    }
    
    .track-card p {
        font-size: 0.9rem;
    }

    .stats-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }

    .card-header-custom {
        padding: 1rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    .card-body.p-0 {
        padding: 0 !important;
    }

    .table-custom thead th,
    .table-custom tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .badge-winner,
    .badge-draw {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 0;
        margin: 0;
        border-bottom: 1px solid rgba(232, 167, 150, 0.05);
    }

    .navbar-nav .dropdown-menu {
        border: none !important;
        background: rgba(232, 167, 150, 0.03);
        padding: 0 0.75rem;
        margin: 0;
        box-shadow: none !important;
    }

    .navbar-nav .dropdown-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .navbar-nav.ms-auto {
        align-items: flex-start !important;
    }

    .nav-item.dropdown {
        width: 100%;
    }

    .navbar-toggler {
        padding: 0.25rem 0.4rem;
        font-size: 0.9rem;
        border: none !important;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .navbar-collapse {
        background: #fff;
        margin: 0 -1rem;
        padding: 0 1rem;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    
    .page-title {
        font-size: 1.5rem !important;
    }
    
    .page-subtitle {
        font-size: 0.9rem !important;
    }
}

/* Loading Spinner */
.spinner-custom {
    border: 4px solid rgba(232, 167, 150, 0.3);
    border-top: 4px solid var(--primary-peach);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Alert Custom */
.alert-custom {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
}

/* Password Toggle */
.password-field-container {
    position: relative !important;
    width: 100%;
    display: block;
}

.password-field-container input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer;
    color: var(--primary-peach);
    z-index: 99 !important;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    line-height: 1;
}

.password-toggle:hover {
    color: var(--text-dark);
}

.badge-role-admin {
    background: linear-gradient(135deg, #fd7e14, #ff9800) !important;
    color: #ffffff !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    border: none !important;
}

.badge-role-user {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: #ffffff !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    border: none !important;
}