@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #FFB7C5;
    /* Vibrant Baby Pink / Palo de Rosa Encendido */
    --primary-dark: #FF8BA0;
    --secondary: #FF8BA0;
    --secondary-vibrant: #FF5C8A;
    /* Encendido */
    --accent: #FFFFFF;
    --text: #8B4A5D;
    /* Darker Pink instead of brown/black */
    --bg: #FFF9FA;
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 8px 32px rgba(255, 139, 160, 0.2);
    --glass: rgba(255, 255, 255, 0.5);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 209, 220, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 133, 161, 0.2) 0%, transparent 40%);
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
    color: var(--secondary-vibrant);
    /* Headers in vibrant pink */
}

/* Base Layout */
.app-container {
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px;
    position: relative;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.05);
}

/* Header with Glassmorphism */
.app-header {
    padding: 25px 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: var(--secondary-vibrant);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 31, 99, 0.1);
}

.role-badge {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--secondary-vibrant);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    border-radius: 35px;
    box-shadow: 0 10px 40px rgba(255, 94, 142, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #C0A0A0;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active {
    color: var(--secondary-vibrant);
    transform: translateY(-8px);
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Cards & Content */
#view-container {
    padding: 24px;
    animation: fadeIn 0.5s ease-out;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 133, 161, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

/* Specific UI Elements */
.appointment-card {
    border-left: 6px solid var(--primary);
}

.appointment-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.appointment-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-pending {
    background: #FFF9C4;
    color: #FBC02D;
}

.status-completed {
    background: #E8F5E9;
    color: #4CAF50;
}

/* Buttons - Ultra Premium */
.btn {
    background: linear-gradient(135deg, #FF5C8A, #FFB7C5);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 92, 138, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.btn:active {
    transform: scale(0.96);
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary-dark);
    color: var(--secondary-vibrant);
    box-shadow: 0 4px 15px rgba(255, 139, 160, 0.15);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 74, 93, 0.4);
    /* Pinkish overlay */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 40px 40px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.label-premium {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-vibrant);
    margin-bottom: 8px;
    margin-left: 5px;
}

.input-premium {
    width: 100%;
    background: #FFF5F8;
    border: 2px solid transparent;
    padding: 14px 20px;
    border-radius: 18px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-premium:focus {
    border-color: var(--primary-dark);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 209, 220, 0.3);
}

/* Decorative Moños */
.bow-floating {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 10;
    opacity: 0.2;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Screen */
.login-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    background: radial-gradient(circle at top right, #FFD1DC 0%, transparent 40%),
        radial-gradient(circle at bottom left, #FFF0F5 0%, transparent 40%),
        white;
}

.login-card {
    width: 100%;
    max-width: 350px;
}

.login-logo {
    font-size: 2.5rem;
    color: var(--secondary-vibrant);
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

/* Forms & Inputs */
.input-premium[type="date"],
.input-premium[type="time"] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    min-height: 54px;
}

.date-picker-container {
    transition: all 0.3s ease;
}

.date-picker-container:focus-within {
    border-color: var(--secondary-vibrant) !important;
    box-shadow: 0 0 0 4px rgba(255, 31, 99, 0.1);
}

.quick-slot-btn {
    border-radius: 12px;
    font-size: 0.75rem !important;
    padding: 8px 12px !important;
    border: 1px solid var(--primary) !important;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--primary);
    color: var(--secondary-vibrant);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip.active {
    background: var(--secondary-vibrant);
    color: white;
    border-color: var(--secondary-vibrant);
    box-shadow: 0 4px 12px rgba(255, 92, 138, 0.25);
}

.hidden {
    display: none !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 10px;
}