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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo::before {
    content: "🎓";
    margin-right: 0.5rem;
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-header {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #6f42c1;
}

.page-title {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0rem;
    padding-left: 0.5rem;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 0.8rem;
    padding-left: 0.5rem;
    margin-bottom: 0;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1rem 2rem 1rem 2rem!important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.8rem;
    margin-bottom: 0rem;
}

.form-select, .form-input {
    padding: 0.4rem 0.7rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 0.6rem 1rem !important;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #19cb98 0%, #1baf85 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.3) !important;
}

.btn-secondary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

.btn-blue{
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.btn-blue:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3) !important;
}

.btn-xs{
    padding: 0.3rem .5rem !important;
    font-size: 0.55rem !important;
}
.btn-xs:hover {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*color: white !important;*/
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2) !important;
}
.btn-xs.btn-outline-info:hover{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)!important;
    color: white!important;
}
/* Data Table */
.data-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}


.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-height: 80px;
}

.data-table thead {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #f7fafc;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px;
    color: #495057;
}

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


/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #95a5a6;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content, .breadcrumb-content, .main-container {
        padding: 0 1rem;
    }

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

    .page-header {
        flex-direction: column;
        /*gap: 1.5rem;*/
        text-align: center;
    }

    .page-header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-info h1 {
        font-size: 1.2rem;
    }

    .data-table th, .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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


.img-4by3-lg {
    width: 6.5rem;
}

.text-success{
    color: #19cb98!important;
}

.animation-none{
    text-decoration: none !important;
}

.breadcrumb-item.active {
    color: #1b1c1c;
}
small {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif!important;
}

.bg-success {
    background-color: #19cb98!important;
}
.bg-primary-dark {
    background-color: #305c9b!important;
}


.text-primary-500 {
     color: #1e40af;
}


.dropdown-menu-top {
    top: auto !important;
    bottom: 100% !important;
    transform: translateY(-10px);
    left: 25px !important;
}

.dropdown-menu-bottom {
    top: 100% !important;
    bottom: auto !important;
    transform: translateY(10px);
}
.dropdown-menu-bottom::before {
    top: -6px !important;
    bottom: auto !important;
    border-bottom-color: #ffffff !important;
    transform: translateY(-50%) rotate(45deg);
}

.dropdown-menu-left {
    left: auto !important;
    right: 0 !important;
}
.dropdown-menu-left::before {
    left: auto !important;
    right: 16px !important;
}

.dropdown-menu-right {
    left: 25px !important;
    right: auto !important;
    top: -18px !important;
}

.text-purple {
    color: #6f42c1 !important;
}

.card-header {
    border-bottom: 1px solid rgba(87, 87, 87, 0.1) !important;
}

.rounded-top {
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.rounded-bottom {
    border-radius: 0 0 0.675rem 0.675rem !important;
}

.rounded-3 {
    border-radius: 0.375rem !important;
}
.border-0 {
    border: 0 !important;
}

.rounded-4 {
    border-radius: 0.5rem !important;
}

/* ── Sidebar sticky reutilizable ──
   Aplicar al wrapper del contenido izquierdo.
   Solo actúa en md+ para no romper mobile.   ── */
@media (min-width: 768px) {
    .sidebar-sticky {
        position: sticky;
        top: calc(58px + 1rem);
    }
}