/**
 * DESTINO SAN RAFAEL
 * Estilos del Panel de Administración
 */

/* ==========================================
   LAYOUT
   ========================================== */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--color-gray-100);
}

.admin-sidebar {
    width: 280px;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    transition: transform var(--transition-base);
}

.admin-sidebar.collapsed {
    transform: translateX(-280px);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}

.admin-sidebar.collapsed+.admin-main {
    margin-left: 0;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar-header {
    height: 70px;
    padding: 0 20px;
    border-bottom: 1px solid var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo img {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
}

.sidebar-logo span {
    font-family: var(--font-script);
    font-size: var(--text-xl);
    color: var(--color-primary);
}

.sidebar-toggle {
    display: none;
    color: var(--color-gray-600);
    padding: 8px;
    border-radius: var(--radius-md);
}

.sidebar-toggle:hover {
    background: var(--color-beige);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-menu {
    list-style: none;
}

.menu-section {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-500);
    padding: 20px 20px 10px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-gray-700);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.menu-item a:hover {
    background: var(--color-beige);
    color: var(--color-primary);
}

.menu-item.active a {
    background: linear-gradient(90deg, var(--color-sand) 0%, transparent 100%);
    color: var(--color-primary);
}

.menu-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
    border-radius: 0 4px 4px 0;
}

.menu-item a i {
    width: 20px;
    text-align: center;
    font-size: var(--text-lg);
}

.menu-item .badge {
    margin-left: auto;
    font-size: var(--text-xs);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--color-beige);
}

.sidebar-footer .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gray-600);
    font-size: var(--text-sm);
}

.sidebar-footer .sidebar-link:hover {
    color: var(--color-primary);
}

/* ==========================================
   TOP BAR
   ========================================== */
.admin-topbar {
    height: 70px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.topbar-toggle {
    display: none;
    padding: 10px;
    color: var(--color-gray-600);
    border-radius: var(--radius-md);
}

.topbar-toggle:hover {
    background: var(--color-beige);
}

.topbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.topbar-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-500);
}

.topbar-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--color-beige);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    background: var(--color-gray-100);
    transition: all var(--transition-fast);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--color-green);
    background: var(--color-white);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.topbar-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.topbar-link:hover {
    background: var(--color-beige);
    color: var(--color-primary);
}

.topbar-notifications {
    position: relative;
}

.notification-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    border-radius: var(--radius-full);
    position: relative;
    transition: all var(--transition-fast);
}

.notification-toggle:hover {
    background: var(--color-beige);
    color: var(--color-primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--color-error);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.topbar-user:hover {
    background: var(--color-beige);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.user-role {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.topbar-user:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--color-gray-700);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.user-dropdown a:hover {
    background: var(--color-beige);
    color: var(--color-primary);
}

/* ==========================================
   CONTENT AREA
   ========================================== */
.admin-content {
    padding: 30px;
    flex: 1;
}

.admin-header {
    padding: 30px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-beige);
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header h1 i {
    font-size: var(--text-2xl);
}

.admin-header p {
    color: var(--color-gray-500);
    font-size: var(--text-base);
    margin: 0;
}

.admin-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.admin-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-beige);
}

.admin-card .card-header h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.admin-card .card-header h3 i {
    color: var(--color-green);
}

.admin-card .card-body {
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: 5px;
}

.page-header .text-muted {
    color: var(--color-gray-500);
    font-size: var(--text-base);
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================
   STATS CARDS
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-2xl);
}

.stat-info h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

/* ==========================================
   DASHBOARD GRID
   ========================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dashboard-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-beige);
}

.card-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--color-green);
}

.card-body {
    padding: 20px;
}

/* ==========================================
   TABLES
   ========================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-beige);
}

.table th {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: var(--color-gray-100);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF8E1;
    color: #F57C00;
}

.badge-danger {
    background: #FFEBEE;
    color: #C62828;
}

.badge-info {
    background: #E3F2FD;
    color: #1565C0;
}

.badge-secondary {
    background: var(--color-beige);
    color: var(--color-gray-600);
}

/* ==========================================
   UPCOMING LIST
   ========================================== */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.upcoming-item:hover {
    background: var(--color-beige);
}

.upcoming-date {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upcoming-date .day {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1;
}

.upcoming-date .month {
    font-size: var(--text-xs);
    text-transform: uppercase;
}

.upcoming-info {
    flex: 1;
}

.upcoming-info h4 {
    font-size: var(--text-base);
    margin-bottom: 3px;
}

.upcoming-info p {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* ==========================================
   MESSAGES LIST
   ========================================== */
.messages-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--color-beige);
    transition: all var(--transition-fast);
}

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background: var(--color-gray-100);
}

.message-item.unread {
    background: #FFF8E1;
}

.message-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-header strong {
    font-size: var(--text-base);
}

.message-header .time {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

.message-text {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   QUICK ACTIONS
   ========================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-fast);
}

.quick-action:hover {
    background: var(--color-beige);
    transform: translateY(-3px);
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sand-dark));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.quick-action span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-700);
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--color-gray-500);
}

.empty-state i {
    font-size: var(--text-4xl);
    margin-bottom: 15px;
    color: var(--color-gray-400);
}

.empty-state p {
    font-size: var(--text-base);
}

/* ==========================================
   FORMS
   ========================================== */
.form-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-beige);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group label .required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-beige);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(162, 166, 127, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group .help-text {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-beige);
}

/* ==========================================
   FILE UPLOAD
   ========================================== */
.file-upload {
    border: 2px dashed var(--color-beige);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--color-green);
    background: var(--color-gray-100);
}

.file-upload i {
    font-size: var(--text-4xl);
    color: var(--color-gray-400);
    margin-bottom: 15px;
}

.file-upload p {
    color: var(--color-gray-600);
}

.file-upload input[type="file"] {
    display: none;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--color-error);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-280px);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle,
    .topbar-toggle {
        display: block;
    }

    .topbar-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px 15px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-info {
        display: none;
    }
} 
 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
       F I L E   U P L O A D  
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * /  
 . f i l e - u p l o a d   {  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         p a d d i n g :   3 0 p x ;  
         b o r d e r :   2 p x   d a s h e d   v a r ( - - c o l o r - g r a y - 3 0 0 ) ;  
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - l g ) ;  
         b a c k g r o u n d :   v a r ( - - c o l o r - g r a y - 5 0 ) ;  
         c u r s o r :   p o i n t e r ;  
         t r a n s i t i o n :   v a r ( - - t r a n s i t i o n - b a s e ) ;  
         t e x t - a l i g n :   c e n t e r ;  
 }  
  
 . f i l e - u p l o a d : h o v e r   {  
         b o r d e r - c o l o r :   v a r ( - - c o l o r - p r i m a r y ) ;  
         b a c k g r o u n d :   v a r ( - - c o l o r - w h i t e ) ;  
 }  
  
 . f i l e - u p l o a d   i   {  
         f o n t - s i z e :   3 r e m ;  
         c o l o r :   v a r ( - - c o l o r - g r a y - 4 0 0 ) ;  
         m a r g i n - b o t t o m :   1 5 p x ;  
 }  
  
 . f i l e - u p l o a d   p   {  
         m a r g i n - b o t t o m :   5 p x ;  
         c o l o r :   v a r ( - - c o l o r - g r a y - 7 0 0 ) ;  
         f o n t - w e i g h t :   5 0 0 ;  
 }  
  
 . f i l e - u p l o a d   i n p u t [ t y p e = " f i l e " ]   {  
         d i s p l a y :   n o n e ;  
 }  
 