/* Dashboard Styles - Politécnico Bienvenido Caro Amancio */

.dashboard-section {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(26, 26, 26, 0.9) 100%), 
                url('imagenes/slider/slider2.jpeg') center center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.dashboard-section .container {
    position: relative;
    z-index: 1;
}

.dashboard-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.dashboard-section .section-header h2 {
    color: #ff0000;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 0, 0, 0.5);
}

.dashboard-section .section-header p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 68, 68, 0.1);
    border-top-color: #ff4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 15px;
    border: 2px solid #ff4444;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: #ff4444;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.error-state p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid #333;
    transition: all 0.3s ease;
    min-width: 280px;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #ff4444;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
}

.stat-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 50%;
    color: #ff4444;
    flex-shrink: 0;
}

/* Animaciones para iconos */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out infinite;
}

.animate-swing {
    animation: swing 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 3s linear infinite;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info h3 {
    color: #ff4444;
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.stat-info p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: visible;
    line-height: 1.4;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #333;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    color: #ff4444;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

/* Chart Container */
.chart-container {
    min-height: 300px;
    color: #cccccc;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.chart-label {
    min-width: 150px;
    color: #cccccc;
    font-size: 0.95rem;
}

.chart-bar-container {
    flex: 1;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444 0%, #ff6666 100%);
    border-radius: 15px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.chart-value {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    padding-left: 10px;
}

/* List Container */
.list-container {
    max-height: 400px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
}

.list-item-info {
    flex: 1;
}

.list-item-name {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.list-item-detail {
    color: #999;
    font-size: 0.85rem;
}

.list-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4444;
}

.list-item-value.warning {
    color: #ffa500;
}

.list-item-value.danger {
    color: #ff4444;
}

/* Table Controls */
.table-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #ff4444;
}

.search-input::placeholder {
    color: #666;
}

/* Tabla Dashboard */
.tabla-dashboard {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
}

.tabla-dashboard thead {
    background: rgba(255, 68, 68, 0.1);
}

.tabla-dashboard th {
    padding: 1rem;
    text-align: left;
    color: #ff4444;
    font-weight: 600;
    border-bottom: 2px solid #333;
}

.tabla-dashboard td {
    padding: 1rem;
    color: #cccccc;
    border-bottom: 1px solid #333;
}

.tabla-dashboard tbody tr {
    transition: all 0.3s ease;
}

.tabla-dashboard tbody tr:hover {
    background: rgba(255, 68, 68, 0.05);
}

/* Pie Chart */
.pie-chart {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.pie-visual {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pie-legend-color {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.pie-legend-label {
    color: #cccccc;
    font-size: 0.95rem;
}

.pie-legend-value {
    color: #ff4444;
    font-weight: 600;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-section {
        padding: 5rem 0 3rem;
    }

    .dashboard-section .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }

    .stat-info h3 {
        font-size: 2rem;
    }

    .table-controls {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .tabla-dashboard {
        font-size: 0.85rem;
    }

    .tabla-dashboard th,
    .tabla-dashboard td {
        padding: 0.8rem 0.5rem;
    }
}

/* Estilos específicos para las tarjetas de grado en promocion-grado.html */
.grado-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1400px) {
    .grado-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grado-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.list-container::-webkit-scrollbar,
.tabla-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.list-container::-webkit-scrollbar-track,
.tabla-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.list-container::-webkit-scrollbar-thumb,
.tabla-responsive::-webkit-scrollbar-thumb {
    background: #ff4444;
    border-radius: 10px;
}

.list-container::-webkit-scrollbar-thumb:hover,
.tabla-responsive::-webkit-scrollbar-thumb:hover {
    background: #ff6666;
}


/* Tabla Resumen Mejorada */
.tabla-resumen thead {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.tabla-resumen thead th {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.5rem 1rem !important;
    border-bottom: 3px solid #4caf50 !important;
    font-size: 0.95rem;
    text-align: center;
}

.tabla-resumen tbody tr {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.tabla-resumen tbody tr:nth-child(even) {
    background: rgba(240, 240, 240, 0.95);
}

.tabla-resumen tbody tr:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.01);
}

.tabla-resumen tbody td {
    font-weight: 600;
    color: #000000 !important;
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
}

.tabla-resumen tbody td:first-child {
    color: #2e7d32 !important;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: left;
}

.tabla-resumen tbody td:last-child {
    color: #2e7d32 !important;
    font-weight: 700;
    font-size: 1.1rem;
}



