﻿/* ==========================================================
   PORTAL DE VACACIONES FUSAI
   Design System - Components
   ========================================================== */


/* ==========================================================
   BOTONES
   ========================================================== */

.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    border: none;
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}


    .sv-btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }


.sv-btn-primary {
    background-color: var(--fusai-blue);
    color: white;
}


    .sv-btn-primary:hover {
        background-color: #1e3558;
        color: white;
    }



.sv-btn-secondary {
    background-color: var(--fusai-cyan);
    color: white;
}


    .sv-btn-secondary:hover {
        background-color: var(--fusai-blue-light);
        color: white;
    }



.sv-btn-accent {
    background-color: var(--fusai-magenta);
    color: white;
}


    .sv-btn-accent:hover {
        opacity: .85;
        color: white;
    }



.sv-btn-danger {
    background-color: var(--color-danger);
    color: white;
}


    .sv-btn-danger:hover {
        opacity: .85;
        color: white;
    }



.sv-btn-outline {
    background: white;
    border: 1px solid /*var(--gray-medium);*/ white;
    color: var(--color-text);
}


    .sv-btn-outline:hover {
        background: var(--color-background);
    }


/* ==========================================================
   CARDS
   ========================================================== */


.sv-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
}



.sv-card-header {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--fusai-blue);
    margin-bottom: var(--space-2);
}



.sv-card-body {
    color: var(--color-text);
}


/* ==========================================================
   TITULOS
   ========================================================== */


.sv-page-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--fusai-blue);
    margin-bottom: var(--space-3);
}


.sv-section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: var(--space-2);
}


/* ==========================================================
   BADGES / ESTADOS
   ========================================================== */


.sv-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}



.sv-badge-success {
    background: #D1FAE5;
    color: #065F46;
}



.sv-badge-warning {
    background: #FEF3C7;
    color: #92400E;
}



.sv-badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}



.sv-badge-info {
    background: #CFFAFE;
    color: #155E75;
}



/* ==========================================================
   FORMULARIOS
   ========================================================== */


.sv-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--space-2);
}



.sv-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}



.sv-input {
    height: 42px;
    padding: 0 12px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-medium);
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
}



    .sv-input:focus {
        outline: none;
        border-color: var(--fusai-cyan);
        box-shadow: 0 0 0 3px rgba(76,183,228,.25);
    }



.sv-table-container {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
}

.sv-table {
    width: 100%;
    border-collapse: collapse;
}

    .sv-table thead {
        background: var(--fusai-blue);
        color: white;
    }

    .sv-table th {
        padding: 14px;
        font-weight: 600;
        text-align: center !important;
        vertical-align: middle;
    }

    .sv-table td {
        padding: 14px;
        border-bottom: 1px solid var(--color-border);
        text-align: center !important;
        vertical-align: middle;
    }


    .sv-table tbody tr:hover {
        background: #F8FAFC;
    }


.table-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
    .table-actions .sv-btn {
        width: 40px;
        height: 36px;
        padding: 0;
    }

/* ==========================================================
   ALERTAS
   ========================================================== */


.sv-alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-2);
}



.sv-alert-success {
    background: #D1FAE5;
    color: #065F46;
}


.sv-alert-warning {
    background: #FEF3C7;
    color: #92400E;
}



.sv-alert-danger {
    background: #FEE2E2;
    color: #991B1B;
}



.sv-alert-info {
    background: #CFFAFE;
    color: #155E75;
}


/* ==========================================================
   TOOLBAR
   ========================================================== */


.sv-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}



.sv-toolbar-actions {
    display: flex;
    gap: var(--space-2);
}


/* ==========================================================
   DASHBOARD KPI
   ========================================================== */


.sv-kpi {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-3);
    border-left: 5px solid var(--fusai-cyan);
    box-shadow: var(--shadow-sm);
}



.sv-kpi-title {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}



.sv-kpi-value {
    margin-top: 8px;
    font-size: 32px;
    font-weight: 700;
    color: var(--fusai-blue);
}



/* ==========================================================
   AVATAR
   ========================================================== */


.sv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}



/* ==========================================================
   DIVISOR
   ========================================================== */


.sv-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-3) 0;
}



/* ==========================================================
   LOADING
   ========================================================== */


.sv-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-3);
}



/* ==========================================================
   SIDEBAR ITEMS
   ========================================================== */


.sidebar-menu-title {
    color: rgba(255,255,255,.65);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    margin-bottom: var(--space-2);
    padding-left: 12px;
}



.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    font-family: var(--font-secondary);
}



    .sidebar-link:hover {
        background: rgba(255,255,255,.15);
        color: white;
    }



    .sidebar-link.active {
        background: var(--fusai-cyan);
    }



.sidebar-icon {
    width: 22px;
    text-align: center;
}



/* ==========================================================
   HEADER
   ========================================================== */


.header-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--fusai-blue);
}

    .header-title small {
        display: block;
        font-size: var(--font-size-xs);
        font-weight: 500;
        color: var(--color-text-light);
        margin-top: 2px;
    }



.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}



.header-user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}



.header-user-name {
    font-weight: 600;
}



.header-user-role {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}



.header-logout {
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--fusai-blue);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-decoration: none;
}


    .header-logout:hover {
        opacity: .85;
        color: white;
    }


/* ==========================================================
   LOGO
   ========================================================== */


.sidebar-logo-image {
    max-width: 300px;
    max-height: 70px;
    object-fit: contain;
}


/* ==========================================================
   GOOGLE BUTTON
   ========================================================== */


.sv-btn-google {
    width: 100%;
    height: 52px;
    background: white;
    border: 1px solid /*var(--color-border);*/ #ddd;
    /*border-radius: var(--border-radius-md);*/
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text);
    font-weight: 600;
    transition: /*var(--transition-fast);*/ .2s ease;
    box-shadow: 0 4px /*10px*/ 12px rgba(0,0,0,.08)
}


    .sv-btn-google:hover {
        /*box-shadow: var(--shadow-sm);*/
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,.15);
    }

.google-icon {
    width: 20px;
    height: 20px;
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}


    .table-actions .sv-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        font-size: 16px;
    }
