/* assets/css/style.css - Las Pircas Eventos y Taller */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --festive-gradient: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --sidebar-bg: #1e1b4b;
    --sidebar-text: #c7d2fe;
    --sidebar-active: #4338ca;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(99, 102, 241, 0.08);
    --shadow-lg: 0 10px 30px -4px rgba(15, 23, 42, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: 270px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1040;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.sidebar-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
}

.sidebar-brand-subtitle {
    font-size: 0.72rem;
    color: #a5b4fc;
    margin: 0;
    font-weight: 500;
}

.sidebar-menu {
    padding: 1rem 0.75rem;
    list-style: none;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    padding: 0.75rem 0.75rem 0.35rem;
    margin-top: 0.5rem;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.85rem;
    color: #c7d2fe;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: #a5b4fc;
    transition: transform 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link:hover i {
    transform: scale(1.15);
    color: #38bdf8;
}

.sidebar-item.active .sidebar-link {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    font-weight: 600;
}

.sidebar-item.active .sidebar-link i {
    color: #ffffff;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

/* Main Content */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

.app-content {
    padding: 1.75rem 1.5rem;
    flex-grow: 1;
}

/* Cards & Widgets */
.card-custom {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
}

.card-custom .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-custom .card-body {
    padding: 1.25rem;
}

/* Metric / Stat Cards */
.stat-card {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 3.5rem;
    opacity: 0.18;
}

.stat-card.stat-purple { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.stat-card.stat-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.stat-card.stat-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.stat-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.stat-cyan { background: linear-gradient(135deg, #06b6d4, #0284c7); }

.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.15rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.btn-primary-gradient:hover {
    color: white;
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-festive {
    background: var(--festive-gradient);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.15rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-festive:hover {
    color: white;
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Status Badges */
.badge-status {
    padding: 0.38em 0.75em;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 30px;
    letter-spacing: 0.02em;
}

.badge-status.Cotizado { background-color: #e0e7ff; color: #4338ca; }
.badge-status.Reservado { background-color: #fef3c7; color: #b45309; }
.badge-status.Confirmado { background-color: #d1fae5; color: #065f46; }
.badge-status.En\ Preparación { background-color: #cffafe; color: #155e75; }
.badge-status.Realizado { background-color: #ede9fe; color: #5b21b6; }
.badge-status.Cancelado { background-color: #fee2e2; color: #991b1b; }

/* Quotation Live Calculator */
.calc-summary-box {
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.calc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
}

.calc-summary-item:last-child {
    border-bottom: none;
}

.calc-highlight-box {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.calc-highlight-value {
    font-size: 2rem;
    font-weight: 800;
    color: #34d399;
}

/* AI Prompt Generator */
.prompt-output-card {
    background: #0f172a;
    color: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    border: 1px solid #334155;
    font-size: 0.88rem;
    line-height: 1.6;
}

.copy-btn-corner {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Workshop Simulator Card */
.workshop-card {
    border-left: 4px solid #8b5cf6;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

/* Tables */
.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
}

.table-custom tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.table-custom tbody tr:hover {
    background-color: #f1f5f9;
}

/* Print Styling */
@media print {
    body { background: white !important; }
    .app-sidebar, .app-navbar, .no-print { display: none !important; }
    .app-main { margin: 0 !important; padding: 0 !important; }
    .card-custom { border: none !important; box-shadow: none !important; }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .app-sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        bottom: 0;
    }
    .app-sidebar.show {
        left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1030;
    }
    .sidebar-overlay.show {
        display: block;
    }
}
