
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: #000000;
    line-height: 1.6;
}

/* === PAGINA DE LOGIN === */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #A8E6CF 0%, #90EE90 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.login-icon {
    text-align: center;
    margin-bottom: 30px;
    font-size: 64px;
}

.login-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

.login-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666666;
    margin-bottom: 30px;
}

/* === DASHBOARD ADMIN === */
.dashboard-admin {
    min-height: 100vh;
    background: linear-gradient(180deg, #FFFACD 0%, #FFFFFF 100%);
}

.dashboard-header {
    padding: 30px;
    border-bottom: 3px solid #000000;
}

.dashboard-title {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
}

.dashboard-user-info {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #666666;
    font-size: 14px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card {
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
}

.dashboard-card.card-usuarios {
    background: linear-gradient(135deg, #E6CCE6 0%, #F0D9FF 100%);
}

.dashboard-card.card-reportes {
    background: linear-gradient(135deg, #FFD9CC 0%, #FFE0D9 100%);
}

.dashboard-card.card-modulos {
    background: linear-gradient(135deg, #B3E5FC 0%, #CCF2FF 100%);
}

.dashboard-card-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.dashboard-card-title {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

/* === NAVBAR HORIZONTAL === */
.navbar-horizontal {
    background: linear-gradient(180deg, #FFFACD 0%, #FFF9C4 100%);
    border-bottom: 2px solid #000000;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 60px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 8px 15px;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-icon {
    font-size: 36px;
    line-height: 1;
    display: block;
}

.nav-link span:last-child {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
    display: block;
}

.nav-user {
    color: #999999;
    font-size: 13px;
    font-weight: 400;
}

/* === PAGINAS CON FONDO AZUL === */
.page-blue {
    min-height: 100vh;
    background: linear-gradient(180deg, #B3D9FF 0%, #CCE5FF 100%);
    padding: 20px;
}

.page-blue-light {
    min-height: 100vh;
    background: linear-gradient(180deg, #E6F3FF 0%, #FFFFFF 100%);
    padding: 20px;
}

/* === CONTENEDOR PRINCIPAL === */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #666666;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #CCCCCC;
}

/* === FORMULARIOS === */
.form-container {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFACD 100%);
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #CCCCCC;
    border-radius: 8px;
    background: #F5F5F5;
    font-size: 16px;
    font-family: inherit;
    color: #000000;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00BCD4;
    background: #FFFFFF;
}

.form-input::placeholder {
    color: #999999;
    font-style: italic;
}

/* === BOTONES === */
.btn {
    padding: 12px 28px;
    border: 2px solid #000000;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: #4DD0E1;
    color: #000000;
}

.btn-success {
    background: #66BB6A;
    color: #000000;
}

.btn-danger {
    background: #EF5350;
    color: #000000;
}

.btn-warning {
    background: #FF7043;
    color: #000000;
}

.btn-info {
    background: #4DD0E1;
    color: #000000;
}

.btn-secondary {
    background: #EEEEEE;
    color: #000000;
}

.btn-delete {
    background: #8B0000;
    color: #FFFFFF;
}

.btn-logout {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 36px;
}

/* === USUARIOS === */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFACD 100%);
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-card-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    font-size: 48px;
}

.user-details h3 {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 14px;
    color: #666666;
}

.user-card-actions {
    display: flex;
    gap: 15px;
}

/* === BARRA DE BUSQUEDA === */
.search-bar {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 16px;
}

.search-input::placeholder {
    color: #999999;
    font-style: italic;
}

/* === TABLAS === */
.table-container {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

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

.data-table thead {
    background: linear-gradient(135deg, #E0E0E0 0%, #F5F5F5 100%);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: #000000;
    border-bottom: 2px solid #000000;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #CCCCCC;
}

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

/* === REPORTES === */
.report-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFACD 100%);
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.report-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 6px;
    font-size: 14px;
}

.report-module {
    padding: 8px 20px;
    background: linear-gradient(135deg, #00BCD4 0%, #26C6DA 100%);
    border: 2px solid #000000;
    border-radius: 8px;
    font-weight: bold;
}

/* === DROPDOWN/SELECT === */
.filter-dropdown {
    padding: 12px 20px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: linear-gradient(135deg, #E0E0E0 0%, #F5F5F5 100%);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    min-width: 200px;
}

/* === ALERTAS === */
.alert {
    padding: 15px 20px;
    border: 2px solid #000000;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    color: #1B5E20;
}

.alert-error {
    background: linear-gradient(135deg, #FFCDD2 0%, #EF9A9A 100%);
    color: #B71C1C;
}

.alert-info {
    background: linear-gradient(135deg, #B3E5FC 0%, #81D4FA 100%);
    color: #01579B;
}

.alert-warning {
    background: linear-gradient(135deg, #FFE082 0%, #FFD54F 100%);
    color: #F57F17;
}

/* === UTILIDADES === */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .navbar-menu {
        gap: 20px;
    }
    
    .navbar-icon {
        font-size: 24px;
    }
    
    .navbar-text {
        font-size: 12px;
    }
    
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-card-actions {
        width: 100%;
        justify-content: center;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .btn-logout {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
}

/* === ICONOS === */
.icon-key::before { content: '🔑'; }
.icon-users::before { content: '👥'; }
.icon-report::before { content: '📊'; }
.icon-modules::before { content: '🧩'; }
.icon-dashboard::before { content: '📱'; }
.icon-calendar::before { content: '📅'; }
.icon-student::before { content: '📖'; }
.icon-admin::before { content: '👔'; }
.icon-edit::before { content: '✏️'; }
.icon-delete::before { content: '🗑️'; }
.icon-add::before { content: '➕'; }
.icon-back::before { content: '🔙'; }
.icon-download::before { content: '📥'; }
