/* Beast Foodz Custom Styles */
/* Brand Colors */
:root {
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --orange: #FFA500;
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #252525;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 70px;
}

/* Navbar */
.navbar {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 0;
    z-index: 9999;
}

.navbar > .container {
    max-width: 1400px;
    padding: 12px 30px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .navbar-logo {
        height: 40px;
    }
    .navbar > .container {
        padding: 12px 20px;
    }
    .navbar-nav {
        gap: 5px;
        padding: 15px 0;
    }
    .nav-link {
        width: 100%;
        padding: 14px 20px !important;
        font-size: 15px;
        border-radius: 10px;
        justify-content: flex-start;
    }
    .nav-link .nav-icon {
        font-size: 20px;
    }
    .btn-register {
        margin-top: 5px;
    }

    /* Hamburger icon gold bars */
    .navbar-toggler {
        border-color: rgba(255, 215, 0, 0.3);
        padding: 5px;
    }
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand .gold {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Menu Items */
.navbar-nav {
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: #ccc !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255, 215, 0, 0.1);
}

.nav-link.active {
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.15);
}

/* Nav Icons */
.nav-icon {
    font-size: 18px;
    color: #888;
    transition: color 0.3s ease;
}

.nav-link:hover .nav-icon {
    color: #FFD700;
}

.nav-link.active .nav-icon {
    color: #FFD700;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: 2px;
    right: -4px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #111;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Register Button */
.btn-register {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #111 !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 16px !important;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    color: #111 !important;
}

.btn-register .nav-icon {
    color: #111 !important;
}

.dropdown-menu-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--gold);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #000 !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.card-title {
    color: var(--text-primary);
}

.card-body {
    color: var(--text-primary);
}

.card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Stats Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #000;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Tables */
.table {
    color: var(--text-secondary);
}

.table thead th {
    background: var(--bg-card-hover);
    color: var(--gold);
    border-color: var(--border-color);
    font-weight: 600;
}

.table tbody td {
    border-color: var(--border-color);
    vertical-align: middle;
}

.table-dark {
    --bs-table-bg: var(--bg-card);
    --bs-table-border-color: var(--border-color);
}

/* Forms */
.form-control, .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-card);
    border-color: var(--gold);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Radio & Checkbox */
.form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* Badges */
.badge-gold {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #000;
}

.badge-success {
    background: var(--success);
}

.badge-warning {
    background: var(--warning);
    color: #000;
}

.badge-danger {
    background: var(--danger);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Footer */
.footer-main {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
    filter: brightness(1.1);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    filter: brightness(1.3);
}

.footer-social img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links .separator {
    color: var(--text-muted);
}

.text-gold {
    color: var(--gold) !important;
}

/* Dashboard Specific */
.dashboard-container {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

/* Check-in Button */
.checkin-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.checkin-btn.checked-in {
    background: linear-gradient(135deg, var(--success), #20c997);
}

.checkin-btn.checked-out {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #000;
}

.checkin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.calendar-day.attended {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #000;
    font-weight: 600;
}

.calendar-day.today {
    border: 2px solid var(--gold);
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* Modal */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Profile Wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: 0 0.25rem;
    border-radius: 8px;
    color: var(--text-muted);
}

.wizard-step.active {
    border-color: var(--gold);
    color: var(--gold);
}

.wizard-step.completed {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #000;
    border-color: transparent;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.03);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.social-btn.google {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
}

.social-btn.google:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
}

/* Form Input with Icon */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-icon-wrap .form-control.has-icon {
    padding-left: 42px;
}

.input-icon-wrap .form-control:focus + .input-icon,
.input-icon-wrap .form-control:focus ~ .input-icon {
    color: var(--gold);
}

/* Reorder: icon is before input, so use sibling if needed */
.input-icon-wrap:focus-within .input-icon {
    color: var(--gold);
}

/* Password Visibility Toggle */
.password-wrap .toggle-password {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    user-select: none;
}

.password-wrap .toggle-password:hover {
    color: var(--gold);
}

/* Field Label with Icon */
.form-label .field-icon {
    font-size: 1rem;
    vertical-align: middle;
    margin-right: 2px;
    color: var(--gold);
    display: none;
}

/* Field Error */
.field-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    padding-left: 4px;
}

/* Agreement Checkbox */
.agree-check .form-check-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.agree-check .form-check-label a {
    text-decoration: none;
}

.agree-check .form-check-label a:hover {
    text-decoration: underline;
}

/* Button Icon */
.btn-icon {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-right: 4px;
}

/* Why Login Section */
.why-login {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.why-login h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-login-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.08);
}

.why-item .material-icons {
    font-size: 1.1rem;
}

/* Verify Icon Wrap */
.verify-icon-wrap {
    margin-bottom: 0.5rem;
}

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

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .checkin-btn {
        width: 100px;
        height: 100px;
    }

    .wizard-progress {
        flex-direction: column;
    }

    .wizard-step {
        margin: 0.25rem 0;
    }
}

/* Animations */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0);
    }
}

.pulse {
    animation: pulse-gold 2s infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
