﻿@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Montserrat:wght@800;900&display=swap');

:root {
    --brand-pink: #D9B4B0;
    --brand-pink-dark: #b88f8b;
    --bg-main: #F7F5F0;
    /* Blanco grisado */
    --bg-card: #FFFFFF;
    --bg-hover: #E9EDF2;
    --text-main: #1A1A1A;
    --text-muted: #6B7280;
    --border-subtle: rgba(0, 0, 0, 0.08);

    /* Dashboard-specific accent colors */
    --accent-blue: #64B5F6;
    --accent-purple: #BA68C8;
    --accent-orange: #FFB74D;
    --accent-green: #81C784;
    --accent-pink: #F06292;
    --header-font: 'Outfit', sans-serif;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding-top: 0;
    margin-top: 0;
    font-size: 0.95rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Nunito', sans-serif;
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #CED6E0;
    border-radius: 10px;
}

/* Premium Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Action Cards */
.action-card {
    background: #F8FAFB;
    border: 1px solid #E9EFF2;
    padding: 18px 25px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-card:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--brand-pink);
}

/* Modern Inputs */
.form-control,
.form-select {
    background-color: #FFFFFF !important;
    border: 1px solid #E0E4E8 !important;
    color: var(--text-main) !important;
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-pink) !important;
    box-shadow: 0 0 0 4px rgba(217, 180, 176, 0.2) !important;
}

/* Buttons */
.btn-primary,
.btn-success {
    background-color: var(--brand-pink);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(217, 180, 176, 0.3);
}

.btn-primary:hover,
.btn-success:hover {
    background-color: var(--brand-pink-dark);
    color: white;
}

/* Navbar */
.navbar {
    background: #000000 !important;
    height: 90px;
    border-bottom: none !important;
    backdrop-filter: none;
}

.sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    background: #0A0A0A !important;
    border-right: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding-top: 20px;
    z-index: 1000;
}

.sidebar .nav-link {
    color: #94A3B8 !important;
    font-weight: 700;
    /* Increased weight for premium feel */
    padding: 12px 20px;
    border-radius: 14px;
    margin: 4px 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    letter-spacing: -0.01em;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    color: #475569 !important;
    transition: inherit;
}

.sidebar .nav-link:hover {
    color: #FFFFFF !important;
    transform: translateX(8px);
}

/* Base Soft Pastel Palette for Icons on Hover/Active */
.sidebar .nav-link:hover i {
    color: var(--brand-pink) !important;
}

/* Dashboard: Soft Blue */
.sidebar .nav-link[href*="Home"].active {
    background: rgba(100, 181, 246, 0.12) !important;
    color: #BBDEFB !important;
    border-color: rgba(100, 181, 246, 0.2);
}

.sidebar .nav-link[href*="Home"].active i {
    color: #64B5F6 !important;
}

.sidebar .nav-link[href*="Home"].active::before {
    background: #64B5F6;
    box-shadow: 0 0 10px #64B5F6;
}

/* Orders: Soft Green */
.sidebar .nav-link[href*="Order"].active {
    background: rgba(129, 199, 132, 0.12) !important;
    color: #C8E6C9 !important;
    border-color: rgba(129, 199, 132, 0.2);
}

.sidebar .nav-link[href*="Order"].active i {
    color: #81C784 !important;
}

.sidebar .nav-link[href*="Order"].active::before {
    background: #81C784;
    box-shadow: 0 0 10px #81C784;
}

/* Campus: Soft Purple */
.sidebar .nav-link[href*="Campus"].active {
    background: rgba(186, 104, 200, 0.12) !important;
    color: #E1BEE7 !important;
    border-color: rgba(186, 104, 200, 0.2);
}

.sidebar .nav-link[href*="Campus"].active i {
    color: #BA68C8 !important;
}

.sidebar .nav-link[href*="Campus"].active::before {
    background: #BA68C8;
    box-shadow: 0 0 10px #BA68C8;
}

/* Indicators: Soft Orange/Pink (Brand) */
.sidebar .nav-link[href*="Indicators"].active {
    background: rgba(217, 180, 176, 0.15) !important;
    color: #FFFFFF !important;
    border-color: rgba(217, 180, 176, 0.3);
}

.sidebar .nav-link[href*="Indicators"].active i {
    color: var(--brand-pink) !important;
}

.sidebar .nav-link[href*="Indicators"].active::before {
    background: var(--brand-pink);
    box-shadow: 0 0 10px var(--brand-pink);
}

/* Admin Sections: Soft Gray/Blue */
.sidebar .nav-link[href*="User"].active,
.sidebar .nav-link[href*="Supplier"].active,
.sidebar .nav-link[href*="BookingType"].active,
.sidebar .nav-link[href*="Export"].active {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #F1F5F9 !important;
    border-color: rgba(148, 163, 184, 0.2);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    border-radius: 0 4px 4px 0;
}

.sidebar .sidebar-heading {
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #64748B !important;
    margin-top: 2.8rem !important;
    margin-bottom: 1rem !important;
    padding-left: 2.5rem !important;
    text-transform: uppercase;
}

/* Profile Area */
.header-brand-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--brand-pink);
    letter-spacing: -1px;
    text-transform: none;
}

.valijin-mascot {
    transition: all 0.3s ease;
    animation: mascotWalking 2s infinite ease-in-out;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    margin-top: -50px;
    z-index: 50;
}

@keyframes mascotWalking {
    0% {
        transform: scale(1) translateY(0) rotate(0deg);
    }

    25% {
        transform: scale(1.15) translateY(-15px) rotate(8deg);
    }

    50% {
        transform: scale(1) translateY(0) rotate(0deg);
    }

    75% {
        transform: scale(1.15) translateY(-15px) rotate(-8deg);
    }

    100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.speech-bubble {
    position: absolute;
    background: #ffffff;
    border: 3px solid var(--brand-pink);
    border-radius: 20px;
    padding: 14px 22px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1rem;
    max-width: 280px;
    box-shadow: 0 15px 35px rgba(217, 180, 176, 0.4);
    z-index: 100;
    transition: opacity 0.5s ease;
    animation: bubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bubble-login {
    bottom: 150px;
    right: -30px;
}

.speech-bubble.fade-out {
    opacity: 0;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 40px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--brand-pink) transparent transparent;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 42px;
    border-width: 13px 13px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent;
    z-index: 1;
}

@keyframes bubblePop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.star-container {
    margin-left: 25px;
    vertical-align: middle;
}

.comet-ring {
    position: absolute;
    width: 80px;
    height: 45px;
    border: 4px solid var(--brand-pink);
    border-top-color: transparent;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    opacity: 0.8;
    box-shadow: 0 0 20px var(--brand-pink), inset 0 0 10px var(--brand-pink);
    z-index: -1;
}

.header-star {
    font-size: 2.5rem;
    color: var(--brand-pink);
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(217, 180, 176, 0.8));
    animation: starPulse 2.5s infinite ease-in-out;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.profile-greeting {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF !important;
}

.nav-profile-img {
    width: 65px;
    height: 65px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Stat Cards */
.stat-card-label {
    font-size: 0.9rem;
    /* Slightly larger */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9) !important;
    /* White for pastel cards */
    margin-bottom: 5px;
}

.stat-card-value {
    font-size: 2.5rem;
    /* Enlarge */
    font-weight: 800;
    /* Extra Bold */
    color: white !important;
    /* Force white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card-link {
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 500;
}

.profile-dropdown-toggle::after {
    display: none !important;
}

.profile-dropdown-toggle {
    transition: opacity 0.2s ease;
}

.profile-dropdown-toggle:hover {
    opacity: 0.8;
}

.profile-dropdown-toggle:focus {
    box-shadow: none !important;
}

.dropdown-item {
    font-size: 0.95rem;
    font-weight: 700;
    color: #CBD5E1 !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
    transform: translateX(5px);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #ff4d4d !important;
}