/* style.css - TechSOS Standard + Appointment Styles */
:root {
    --primary: #0056b3; 
    --accent: #28a745;
    --danger: #dc3545;
    --bg: #f4f6f9;
    --white: #ffffff;
    --dark: #343a40;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); margin: 0; color: var(--dark); line-height: 1.6; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
.card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }

/* Header */
header { background: var(--white); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; }
.logo-img { height: 50px; width: auto; display: block; }
.btn-nav { padding: 8px 15px; border: 1px solid var(--primary); color: var(--primary); text-decoration: none; border-radius: 4px; display:inline-block; }
.btn-nav:hover { background: var(--primary); color: white; }

/* Forms */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-family: inherit; }

/* Buttons */
.btn { padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; color: white; font-size: 1rem; width: 100%; display: block; text-align: center; text-decoration: none; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: #004494; }
.btn-cancel { display: block; text-align: center; margin-top: 15px; color: #666; text-decoration: none; font-size: 0.9rem; }

/* --- CALENDAR SPECIFIC STYLES --- */
.day-group { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.day-header { font-size: 1.1rem; font-weight: bold; color: var(--dark); margin-bottom: 10px; border-left: 4px solid var(--primary); padding-left: 10px; }

.slots-container { display: flex; flex-wrap: wrap; gap: 10px; }

.time-slot {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px; /* Pill shape */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.time-slot:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.summary-box { background: #eef7ff; padding: 20px; border-radius: 5px; margin-bottom: 20px; border-left: 5px solid var(--primary); }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; text-align: center; }
    .header-spacer { display: none; }
}

/* --- DATE & TIME PICKER LAYOUT --- */
.picker-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}

/* LEFT SIDE: Dates */
.date-sidebar {
    flex: 0 0 250px; /* Fixed width */
    background: #f8f9fa;
    border-right: 1px solid #eee;
    overflow-y: auto;
    max-height: 500px;
}

.date-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: #555;
}
.date-btn:hover { background: #e9ecef; }
.date-btn.active {
    background: var(--white);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-right: -1px; /* Blend with border */
}

/* RIGHT SIDE: Times */
.time-panel {
    flex: 1;
    padding: 20px;
    background: white;
}

.time-group {
    display: none; /* Hidden by default */
    animation: fadeIn 0.3s;
}
.time-group.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Responsiveness for Picker */
@media (max-width: 768px) {
    .picker-container { flex-direction: column; }
    .date-sidebar { flex: none; width: 100%; max-height: 200px; border-right: none; border-bottom: 1px solid #eee; }
    .date-btn { padding: 10px; text-align: center; border-left: none; }
    .date-btn.active { border-left: none; border-bottom: 4px solid var(--primary); }
}

/* --- MINI CALENDAR STYLES --- */
.calendar-wrapper {
    background: #fff;
    /* No border here, the picker-container has it */
}

.calendar-month-block {
    margin-bottom: 20px;
}

.month-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.calendar-grid-header, .calendar-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 Days a week */
    text-align: center;
    gap: 2px;
}

.calendar-grid-header div {
    font-size: 0.75rem;
    font-weight: bold;
    color: #999;
    padding-bottom: 5px;
}

.day-cell {
    padding: 10px 0;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: default;
    color: #ccc; /* Disabled color */
    position: relative;
}

/* Available Date */
.day-cell.available {
    color: var(--dark);
    font-weight: bold;
    cursor: pointer;
    background: #f0f7ff;
}

.day-cell.available:hover {
    background: #e0efff;
    color: var(--primary);
}

/* Selected Date */
.day-cell.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Today Indicator */
.day-cell.today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* Hide the old list styles if present */
.date-btn { display: none; }