.dashboard-container {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.stat-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.floating-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    transition: all 0.3s ease;
}

.floating-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.floating-menu:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.loading-stat {
    opacity: 0.6;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.update-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.refresh-button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.refresh-button:hover {
    background-color: var(--color-primary-dark);
}

.refresh-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.stat-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.admin-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-notice h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.user-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
}

.user-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-upload-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.avatar-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 1rem auto;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #ddd;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-area:hover {
    border-color: var(--color-primary);
    background-color: #f8f9ff;
}

.avatar-upload-area.dragover {
    border-color: var(--color-primary);
    background-color: #e3f2fd;
}

.avatar-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.loading-avatar {
    opacity: 0.6;
    pointer-events: none;
}

.loading-avatar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card.secondary {
    background: linear-gradient(135deg, #364b8a 0%, #5f6ed6 100%);
}

.stat-card.tertiary {
    background: linear-gradient(135deg, #364b8a 0%, #5f6ed6 100%);
}

.stat-card.quaternary {
    background: linear-gradient(135deg, #364b8a 0%, #5f6ed6 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}

.filter-dropdown {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.filter-dropdown:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}


/*Modal Grupo*/
#modalGrupo .modal-content {
    max-width: 650px;
    padding: 25px;
    border-radius: 12px;
}

#modalGrupo .modal-title {
    margin-bottom: 20px;
    color: rgba(19, 12, 85, 0.9);
}

/* GRID */
#modalGrupo .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Campos */
#modalGrupo .form-group {
    display: flex;
    flex-direction: column;
}

#modalGrupo .form-group.full {
    grid-column: 1 / 3;
}

/* Inputs */
#modalGrupo input,
#modalGrupo select,
#modalGrupo textarea {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Botones */
#modalGrupo .form-actions {
    grid-column: 1 / 3;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

#modalGrupo .btn-primary {
    background-color: rgba(19, 12, 85, 0.8);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

#modalGrupo .btn-secondary {
    background-color: #eee;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}