/* 
 * Sistema de Reservas - Estilos Globales
 * Diseño Minimalista y Premium
 */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #c9a227;
    /* Gold/Premium accent */
    --text-color: #333333;
    --text-light: #777777;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

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

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Wizard Styles */
.wizard-container {
    max-width: 800px;
    margin: 60px auto;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.wizard-header {
    background: var(--primary-color);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.step-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.step-indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.wizard-content {
    padding: 40px;
    flex: 1;
    position: relative;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Date Picker Customization (Simple) */
input[type="date"] {
    font-size: 1.2rem;
    padding: 15px;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--primary-color);
}

.service-card.selected {
    border-color: var(--accent-color);
    background-color: #fffdf5;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.time-slot {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.time-slot:hover {
    background-color: var(--bg-light);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wizard-container {
        margin: 20px;
        min-height: auto;
    }

    .wizard-content {
        padding: 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .main-content {
        padding: 20px;
    }
}

/* ... (previous styles) ... */

/* Admin Dashboard Overhaul */

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

/* Progress Bars */
.progress-container {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-bar-bg {
    background-color: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Reservation Cards (List View) */
.res-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.res-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.res-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.res-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    min-width: 60px;
}

.res-details h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.res-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.res-meta i {
    margin-right: 5px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background: #e6f4ea;
    color: #1e7e34;
}

.badge-warning {
    background: #fff8e1;
    color: #f57f17;
}

.badge-danger {
    background: #fce8e6;
    color: #c62828;
}

.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* Schedule Matrix */
.schedule-matrix {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-row {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.day-label {
    width: 100px;
    font-weight: 600;
}

.service-toggles {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.service-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.service-toggle.active {
    border-color: var(--success-color);
    background: #f0fff4;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-inputs input {
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Prevent Body Scroll */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* Mobile UI Refinements */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .stat-value {
        font-size: 1.8rem;
        margin: 0;
        order: 2;
    }

    .stat-label {
        font-size: 0.9rem;
        order: 1;
    }

    .res-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .res-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .res-time {
        font-size: 1rem;
        background: var(--bg-light);
        padding: 4px 8px;
        border-radius: 4px;
        margin-bottom: 5px;
        display: inline-block;
    }

    .res-details h4 {
        font-size: 1.1rem;
    }

    .res-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.85rem;
    }

    /* Better spacing for main content on mobile */
    .main-content {
        padding: 20px 15px !important;
    }

    /* Adjust headings */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}