/* Estilos personalizados para el Sistema de Gestión de Directivas */

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    border: none;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.directiva-card {
    transition: transform 0.2s;
    margin-bottom: 1.5rem;
}

.directiva-card:hover {
    transform: translateY(-5px);
}

.directiva-card .card-header {
    font-weight: bold;
}

.directiva-card .badge {
    font-size: 0.8rem;
}

.directiva-expired {
    border-left: 4px solid #dc3545;
}

.directiva-open {
    border-left: 4px solid #198754;
}

.directiva-closed {
    border-left: 4px solid #ffc107;
}

.directiva-completed {
    border-left: 4px solid #0d6efd;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.account-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.enlace-input {
    margin-bottom: 1rem;
}

.enlace-input label {
    font-weight: bold;
}

.dashboard-stats {
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #6c757d;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Loading screen styles - Pantalla de presentación post-login */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9, #1a91da);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-bird {
    width: 80px;
    height: 80px;
    fill: white;
    animation: float 2s ease-in-out infinite;
    margin-bottom: 24px;
}

.loading-message {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    max-width: 400px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
}

/* Header Styles - Estilos del header mejorado */
.header-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.twitter-logo {
    animation: breathe 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(29, 161, 242, 0.3));
}

@keyframes breathe {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

.header-slogan {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.separator {
    color: #6c757d;
    margin: 0 8px;
    font-weight: bold;
}

.slogan-text {
    color: #1DA1F2;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: sloganGlow 2s ease-in-out infinite alternate;
}

@keyframes sloganGlow {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(29, 161, 242, 0.3);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(29, 161, 242, 0.6);
    }
}

.user-info {
    font-size: 14px;
}

.user-name {
    color: #2c3e50;
    font-size: 16px;
}

.badge-sm {
    font-size: 10px;
    padding: 2px 6px;
}

/* Rating Stars and Performance Indicators */
.rating-stars {
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-stars .fa-star {
    margin-right: 1px;
}

.performance-indicator {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.performance-up {
    color: #28a745;
}

.performance-down {
    color: #dc3545;
}

.performance-stable {
    color: #6c757d;
}

.performance-indicator i {
    font-size: 14px;
    margin-right: 2px;
    animation: pulse 2s infinite;
}

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

/* User Profile Enhancements */
.profile-metrics {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.metric-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trend-indicator {
    font-size: 18px;
    margin-left: 5px;
}

/* Enhanced Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 8px;
    margin: 10px 0;
}

.rating-stars-large {
    font-size: 1.5em;
}

.rating-stars-large .fa-star {
    margin: 0 2px;
    transition: all 0.3s ease;
}

.rating-stars-large .fa-star:hover {
    transform: scale(1.2);
}
