:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Login & Register Pages */
.login-page, .register-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
}

.login-page .card, .register-page .card {
    border: none;
    border-radius: 15px;
}

/* Navbar */
.navbar {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Cards */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Dashboard Styles */
.sidebar {
    background-color: var(--primary);
    color: white;
    min-height: calc(100vh - 56px);
    padding: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* Status Badges */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Document Upload */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--secondary);
    background-color: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--secondary);
    background-color: #e3f2fd;
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.chatbot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

/* Estilos para el admin dashboard */
.admin-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mejorar la tabla de usuarios */
#usersTable {
    font-size: 0.9rem;
}

#usersTable th {
    border-top: none;
    font-weight: 600;
    color: #2c3e50;
}

#usersTable td {
    vertical-align: middle;
}

/* Loading states mejorados */
.loading-state {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Botones de acción */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}