:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --info-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    --sidebar-width: 280px;
    --top-bar-height: 70px;
    --card-radius: 12px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fb;
    color: #4a4a4a;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    width: 280px;
    background: #1a1a2e;
    color: #ffffff;
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto; 
}


.sidebar-menu-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; 
}

.sidebar-menu {
    padding: 15px 0;
}



.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-profile {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgb(218, 51, 51);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgb(197, 23, 23);
    color: white;
}







.school-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.school-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.school-motto {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.menu-section {
    margin-top: 25px;
    padding: 0 15px;
}

.menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    padding-left: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-item i {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-item span {
    font-size: 0.95rem;
    font-weight: 400;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.sidebar-footer {
    position: sticky;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
}



.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
}

.logout-btn {
    color: white;
    opacity: 0.7;
    font-size: 1.1rem;
    transition: all 0.2s;
    padding: 5px;
}



.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}



.user-info span {
    font-weight: 500;
}







.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 20px;
    transition: all var(--transition-speed);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb span {
    margin: 0 5px;
    color: #6c757d;
}

.breadcrumb .active {
    color: var(--primary-color);
    font-weight: 500;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-display {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.date-display i {
    margin-right: 8px;
    color: var(--primary-color);
}

.btn-refresh {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.theme-toggle i {
    font-size: 0.9rem;
    color: #6c757d;
}

.theme-toggle .fa-sun {
    color: #f8961e;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.summary-card.primary::before {
    background: var(--primary-color);
}

.summary-card.success::before {
    background: var(--success-color);
}

.summary-card.danger::before {
    background: var(--danger-color);
}

.summary-card.warning::before {
    background: var(--warning-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
}

.primary .card-icon {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.success .card-icon {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.danger .card-icon {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

.warning .card-icon {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning-color);
}

.card-info {
    flex: 1;
}

.card-title {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.card-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.card-trend {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 5px;
}

.card-trend i {
    font-size: 0.7rem;
    margin-right: 3px;
}

.card-trend.up {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.card-trend.down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .chart-row {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s;
}

.chart-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.chart-actions .form-select {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.85rem;
    box-shadow: none;
}

.chart-body {
    position: relative;
    height: 300px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.chart-body {
    position: relative;
    width: 100%;
    height: 280px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#distributionChart {
    width: 230px !important;
    height: 260px !important;
    margin: 0 auto 10px; 
}



.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}

.legend-color.present {
    background: var(--success-color);
}

.legend-color.absent {
    background: var(--danger-color);
}

.legend-color.justified {
    background: var(--warning-color);
}

.data-table-container {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.table-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions .btn {
    font-size: 0.85rem;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table td {
    padding: 15px;
    font-size: 0.9rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.present {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.badge.absent {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

.badge.justified {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning-color);
}



.btn-action {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6c757d;
    transition: all 0.2s;
}

.btn-action.view {
    background: rgba(72, 149, 239, 0.1);
    color: var(--info-color);
}

.btn-action.edit {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning-color);
    margin-left: 5px;
}

.btn-action:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.table-info {
    font-size: 0.85rem;
    color: #6c757d;
}

.table-pagination {
    display: flex;
    gap: 5px;
}

.page-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #f8f9fa;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.alert-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .alert-row {
        grid-template-columns: 1fr;
    }
}

.alert-container, .notification-container {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.alert-header, .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.alert-header h3, .notification-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.view-all {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.view-all:hover {
    text-decoration: underline;
}

.alert-list, .notification-list {
    padding: 10px 0;
}

.alert-item, .notification-item {
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    transition: all 0.2s;
}

.alert-item:hover, .notification-item:hover {
    background: #f8f9fa;
}

.alert-icon, .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-item.danger .alert-icon {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

.alert-item.warning .alert-icon {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning-color);
}

.alert-item.info .alert-icon {
    background: rgba(72, 149, 239, 0.1);
    color: var(--info-color);
}

.notification-icon {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.alert-content, .notification-content {
    flex: 1;
}

.alert-content h4, .notification-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.alert-content p, .notification-content p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.alert-time, .notification-time {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 3px;
    display: block;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.modal-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.scanner-container {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.manual-entry h6 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.student-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.student-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-title h5 {
    font-size: 1.1rem;
    margin: 0;
}

.info-title span {
    font-size: 0.85rem;
    color: #6c757d;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    color: var(--dark-color);
    font-weight: 400;
}

.attendance-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.attendance-status.present {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h6 {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.history-list {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.history-date {
    font-size: 0.85rem;
    color: var(--dark-color);
    width: 80px;
}

.history-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}

.history-status.present {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.history-status.absent {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

.history-time {
    font-size: 0.85rem;
    color: #6c757d;
    width: 60px;
    text-align: right;
}

/* Modo Oscuro */
body.dark-mode {
    background-color: #1a1a2e;
    color: #000000;
}

.dark-mode .main-content {
    background-color: #1a1a2e;
}

.dark-mode .sidebar {
    background: linear-gradient(135deg, #2a2a72 0%, #1a1a2e 100%);
}

.dark-mode .summary-card,
.dark-mode .chart-container,
.dark-mode .data-table-container,
.dark-mode .alert-container,
.dark-mode .notification-container {
    background-color: #16213e;
    color: #e6e6e6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .card-value,
.dark-mode .data-table th,
.dark-mode .data-table td,
.dark-mode .alert-content h4,
.dark-mode .notification-content h4,
.dark-mode .modal-title,
.dark-mode .detail-value,
.dark-mode .history-date {
    color: #e6e6e6;
}

.dark-mode .card-title,
.dark-mode .breadcrumb span,
.dark-mode .alert-content p,
.dark-mode .notification-content p,
.dark-mode .detail-label,
.dark-mode .history-time {
    color: #b8b8b8;
}

.dark-mode .data-table thead {
    background-color: #0f3460;
}

.dark-mode .data-table tbody tr:hover {
    background-color: #0f3460;
}

.dark-mode .table-header,
.dark-mode .alert-header,
.dark-mode .notification-header {
    border-color: #0f3460;
}

.dark-mode .modal-content {
    background-color: #16213e;
}

.dark-mode .modal-header {
    background-color: #0f3460;
    border-color: #0f3460;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.summary-card, .chart-container, .data-table-container, .alert-container, .notification-container {
    animation: fadeIn 0.5s ease-out forwards;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .top-bar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 15px;
    }
}




/**/
.card {
    border-radius: var(--card-radius);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

.card-body {
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

.form-actions {
    text-align: right;
    margin-top: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(76, 201, 240, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(247, 37, 133, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background-color: rgba(72, 149, 239, 0.1);
    border: 1px solid var(--info-color);
    color: var(--info-color);
}



/*sidebar wrapeer*/
.content-wrapper {
    margin-left: 250px; 
    padding: 20px;
}


@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        text-align: center;
    }
}







/* 
 * modo oscuro
 */


  @media (prefers-color-scheme: dark) {
    .student-info {
      background-color: #1a1a1a;     
      color: #fff;                  
      border: 1px solid #333;      
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .student-info h3,
    .student-info p {
      color: #f0f0f0;             
    }
  }
  
  .dark-mode .student-info {
    background-color: #162233 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  }
  
  .dark-mode .student-info h3,
  .dark-mode .student-info p {
    color: #f0f0f0 !important;
  }
  
  body:not(.dark-mode) .student-info {
    background-color: #f9f9f9;
    color: #333;
    border: none;
    box-shadow: none;
  }
  
  body:not(.dark-mode) .student-info h3,
  body:not(.dark-mode) .student-info p {
    color: inherit;
  }


@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        left: 15px;
        top: 15px;
        z-index: 1040;
        background: var(--primary-color);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar.active + .sidebar-overlay {
        display: block;
    }
}

@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}




/*List estudiantes*/