/* ============================================
   SIMPLE CSS - Estilos básicos sin conflictos
   ============================================ */

/* Variables básicas */
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --sidebar-width: 300px;
    --header-height: 70px;
}

/* Layout principal */
.agenda-app {
    min-height: 100vh;
    background-color: #f5f7fa;
}

.agenda-app .main-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.agenda-app .main-content {
    flex: 1;
    padding: 2rem;
    background: #f5f7fa;
}

.agenda-app .sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Header */
.agenda-app .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.agenda-app .navbar-brand {
    color: white !important;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.agenda-app .btn-menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agenda-app .btn-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Cards */
.agenda-app .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.agenda-app .card-header {
    background: #007bff;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: none;
}

.agenda-app .card-body {
    padding: 1.5rem;
    color: #212529;
}

/* Formularios */
.agenda-app .form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #212529;
}

.agenda-app .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.agenda-app .form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

/* Botones */
.agenda-app .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.agenda-app .btn-primary {
    background: #007bff;
    color: white;
}

.agenda-app .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.agenda-app .btn-success {
    background: #28a745;
    color: white;
}

.agenda-app .btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.agenda-app .btn-danger {
    background: #dc3545;
    color: white;
}

.agenda-app .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Navegación */
.agenda-app .nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-app .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.agenda-app .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

/* Tabs */
.agenda-app .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.agenda-app .nav-tabs .nav-link {
    color: #6c757d;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    margin-right: 0.5rem;
}

.agenda-app .nav-tabs .nav-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    transform: none;
}

.agenda-app .nav-tabs .nav-link.active {
    color: #007bff;
    background: white;
    border-bottom: 3px solid #007bff;
    transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .agenda-app .sidebar {
        position: fixed;
        top: var(--header-height);
        right: 0;
        height: calc(100vh - var(--header-height));
        width: var(--sidebar-width);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .agenda-app .sidebar.show {
        transform: translateX(0);
    }
    
    .agenda-app .main-content {
        padding: 1rem;
    }
}

/* Navegación */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

/* Tecnologías Tags */
.tecnologias-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.tecnologias-selected {
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.125rem;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.tech-tag .remove-tech {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.tech-tag .remove-tech:hover {
    opacity: 1;
}

.tech-tag.empty-state {
    background-color: #6c757d;
    font-style: italic;
    opacity: 0.7;
}

.tech-tag.empty-state:hover {
    background-color: #6c757d;
    transform: none;
}

.tech-tag.empty-state .remove-tech {
    display: none;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .agenda-app .sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .agenda-app .main-content {
        padding: 0.5rem;
    }
}

/* Badges */
.agenda-app .badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-app .badge-success {
    background: #28a745;
    color: white;
}

.agenda-app .badge-warning {
    background: #ffc107;
    color: #212529;
}

.agenda-app .badge-danger {
    background: #dc3545;
    color: white;
}

.agenda-app .badge-info {
    background: #17a2b8;
    color: white;
}

.agenda-app .badge-primary {
    background: #007bff;
    color: white;
}

/* Estilos para autocompletado */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestions.show {
    display: block;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item .user-name {
    font-weight: 500;
    color: #212529;
}

.autocomplete-item .user-email {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 2px;
}

.autocomplete-item .user-role {
    font-size: 0.75em;
    color: #007bff;
    background-color: #e7f3ff;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 3px;
}

/* ============================================
   ÁREA DE SUBIDA DE ARCHIVOS
   ============================================ */

.file-upload-area {
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #0056b3;
    background-color: #e7f3ff;
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    border-color: #28a745;
    background-color: #d4edda;
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.file-upload-area p {
    margin: 0;
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

.file-upload-area:hover i {
    color: #0056b3;
}

.file-upload-area.dragover i {
    color: #28a745;
}

/* Lista de archivos */
#fileList {
    margin-top: 20px;
}

.file-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.file-details h6 {
    margin: 0;
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
}

.file-details small {
    color: #6c757d;
    font-size: 0.875rem;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.file-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.file-status.uploading {
    background: #fff3cd;
    color: #856404;
}

.file-status.success {
    background: #d4edda;
    color: #155724;
}

.file-status.error {
    background: #f8d7da;
    color: #721c24;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-upload-area i {
        font-size: 2.5rem;
    }
    
    .file-upload-area p {
        font-size: 1rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}
