/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #1e40af;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --radius: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* === GLOBAL COMPONENTS === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* === FORM === */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    background: var(--background);
    transition: border 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* === ALERT === */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* === HEADER GLOBAL === */
.page-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* === LOGIN PAGE === */
.auth-page {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.auth-brand {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

/* === DASHBOARD === */
.reservation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .reservation-grid {
        grid-template-columns: 1fr;
    }
}

.reservation-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fafcff;
}

.reservation-photo {
    width: 90px;
    height: 90px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
}

.reservation-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.reservation-details p {
    margin: 0.35rem 0;
    font-size: 0.95rem;
}

.reservation-details .label {
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 85px;
    display: inline-block;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-light);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* === FOOTER === */
.page-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .card {
        padding: 1.5rem;
    }

    .reservation-item {
        flex-direction: column;
    }

    .reservation-photo {
        width: 100%;
        height: 180px;
    }

    .page-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}