/* Client Premium Design - Light 3D Glass (Compact) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Colors - Light Theme */
    --bg-body: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.4);

    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-solid: #6366f1;
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);

    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Spacing - Compacted */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Depth */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    background: #f0f9ff;
    padding-bottom: 2rem;
    /* Ensure space at bottom */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-image:
        radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    font-size: 0.95rem;
    /* Slight reduction base font */
}

/* 3D Glass Card Container */
.auth-container,
.container,
.booking-container {
    width: 100%;
    max-width: 1000px;
    /* Slightly tighter width */
    margin: 0 auto;
    padding: 1.5rem;
    /* Reduced padding container */
    position: relative;
    z-index: 10;
}

/* Base Card Style - Compacted */
.card,
.auth-card,
.profile-card,
.service-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Lift Effect */
.card:hover,
.auth-card:hover,
.profile-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    /* Reduced lift */
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Glowing Top Border */
.card::before,
.auth-card::before,
.profile-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

/* Typography - Compacted */
h1,
h2,
h3,
.auth-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 {
    font-size: 2rem !important;
}

/* Force reduced size */
h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

.auth-header h1 {
    font-size: 2.2rem !important;
}

p,
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Forms - Compacted */
.form-group {
    margin-bottom: 1rem;
}

/* Reduced spacing */

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    /* Reduced padding */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Buttons - Compacted */
.btn-submit,
.btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    /* Reduced padding */
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

/* Specific: Login */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.auth-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-logo {
    max-height: 60px;
    margin-bottom: 1rem;
}

/* Booking Grid (Desktop) */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.booking-grid .card {
    height: 100%;
    /* Equal height cards */
}

/* Full width for last step if needed, or specific spanning */
.col-span-2 {
    grid-column: span 2;
}


/* Specific: Profile & Schedule */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    /* Reduced size */
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Time Slots (Agendar.php) */
.time-slot {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    /* Reduced padding */
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.time-slot:hover {
    background: #f1f5f9;
    border-color: var(--primary-solid);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.loading-spinner {
    color: var(--primary-solid);
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .card,
    .auth-card {
        padding: 1.25rem;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .col-span-2 {
        grid-column: auto;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Time Slots (Agendar.php) */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    background: #f1f5f9;
    border-color: var(--primary-solid);
    transform: translateY(-3px);
}

.time-slot.selected {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.loading-spinner {
    color: var(--primary-solid);
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
}