/* ========================================
   AGENDA POLY - PREMIUM UI V2
   Timeline & Modern Aesthetics
   ======================================== */
:root {
    /* Premium Color Palette */
    --primary: #d4af37;
    /* Gold */
    --primary-rgb: 212, 175, 55;
    --primary-gradient: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);

    --accent: #2c3e50;
    /* Dark Navy */
    --accent-light: #34495e;

    --bg-body: #f4f6f9;
    --bg-card: #ffffff;

    --text-main: #2c3e50;
    --text-muted: #95a5a6;

    --success: #27ae60;
    --success-bg: rgba(39, 174, 96, 0.1);

    --danger: #e74c3c;
    --danger-bg: rgba(231, 76, 60, 0.1);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body {
    background: var(--bg-body);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin: 0;
    padding-bottom: 100px;
    -webkit-font-smoothing: antialiased;
}

/* Animations & Interactivity */
.timeline-card {
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s;
}

.timeline-card:active {
    cursor: grabbing;
}

.timeline-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.month-section {
    margin-bottom: 30px;
}

.month-header-modern {
    padding: 10px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.month-header-modern:hover {
    color: var(--accent);
}

.date-header-sticky {
    cursor: pointer;
    user-select: none;
}

.timeline-items.d-none {
    display: none;
}

.month-body.d-none {
    display: none;
}

/* --- HEADERS & NAVIGATION --- */
.app-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filter-bar {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    font-weight: 600;
}

/* --- NEW TIMELINE VIEW --- */
.timeline-date-group {
    padding: 0 20px;
    margin-bottom: 24px;
}

.date-header-sticky {
    position: sticky;
    top: 70px;
    background: var(--bg-body);
    z-index: 900;
    padding: 10px 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-badge-large {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-badge-large.today {
    background: var(--primary);
    color: #fff;
}

.date-badge-day {
    opacity: 0.7;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.timeline-items {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    margin-left: 10px;
}

.timeline-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    border-left: 4px solid transparent;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Timeline Dot */
.timeline-card::before {
    content: '';
    position: absolute;
    left: -27px;
    /* Adjust based on padding/border */
    top: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.timeline-card.paid {
    border-left-color: var(--success);
}

.timeline-card.paid::before {
    border-color: var(--success);
}

.timeline-card.pending {
    border-left-color: #f39c12;
}

.timeline-card.pending::before {
    border-color: #f39c12;
}

/* Card Content */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.time-slot {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
}

.price-badge {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.client-info {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.service-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- MODALS --- */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 24px;
}

.modal-title {
    font-weight: 700;
    color: var(--accent);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #e0e0e0;
    padding: 12px;
    background: #f9f9f9;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 14px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #c39b2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* --- EXTRAS --- */
.fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    /* Squircle */
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.4);
    font-size: 1.6rem;
    z-index: 1000;
    transition: all 0.2s;
}

.fab:hover {
    transform: scale(1.05) rotate(90deg);
}

/* Gemini */
.gemini-fab {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    z-index: 1000;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* Status Text Colors */
.text-paid {
    color: var(--success);
}

.text-pending {
    color: #f39c12;
}