/* Modern Glass Design System - Lavanderia System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;700&display=swap');

:root {
    /* Palette: Indigo & Slate */
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --secondary: #64748b;
    /* Slate 500 */
    --success: #10b981;
    /* Emerald 500 */
    --danger: #ef4444;
    /* Red 500 */
    --warning: #f59e0b;
    /* Amber 500 */
    --info: #3b82f6;
    /* Blue 500 */

    /* Backgrounds */
    --bg-body: #f1f5f9;
    /* Slate 100 */
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-heavy: rgba(255, 255, 255, 0.95);

    /* Text */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --radius-lg: 16px;
    --radius-md: 12px;
}

body {
    background-color: var(--bg-body) !important;
    font-family: var(--font-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Glassmorphism Components --- */

/* Navbar */
.navbar {
    background: var(--bg-glass-heavy) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-soft);
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9) !important;
    /* Slightly more opaque */
}

.navbar-brand {
    color: var(--primary) !important;
    font-size: 1.6rem;
    font-weight: 800;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0.8rem !important;
    /* Reduced padding */
    border-radius: var(--radius-md);
    white-space: nowrap;
    /* Force single line */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.08);
    /* Primary tint */
}

/* Cards */
.card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    /* For smooth corners */
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    /* Separate rows visually */
}

.table thead th {
    background: transparent;
    border-bottom: none;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0 1.5rem 0.5rem 1.5rem;
}

.table tbody tr {
    background: white;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    transition: transform 0.1s ease;
}

/* First and last cells rounded */
.table tbody tr td:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.table tbody tr td:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.table tbody tr td {
    border: none;
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    transform: scale(1.005);
    background: #fff;
    z-index: 10;
    position: relative;
    box-shadow: var(--shadow-hover);
}

/* Inputs */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    border-color: var(--primary);
}

/* Badges */
.badge {
    border-radius: 9999px;
    /* Pill */
    padding: 0.35em 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}