/* Estilos personalizados para el sistema de fisioterapia */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
}

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

/* Navbar personalizado */
.navbar-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    color: #f8f9fa !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Cards mejorados */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.2rem;
}

/* Caso clínico card */
.caso-card {
    margin-bottom: 2rem;
    position: relative;
}

.caso-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.caso-card .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.caso-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Botones personalizados */
.btn-custom {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

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

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 50px 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Formularios */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-floating > label {
    color: #6c757d;
}

/* Editor de contenido */
.content-editor {
    min-height: 400px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    background-color: white;
}

/* Agenda/Calendario */
.calendar-day {
    border: 1px solid #e9ecef;
    padding: 1rem;
    min-height: 120px;
    background-color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.event-item {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.event-item.completed {
    background-color: #d1e7dd;
    border-left-color: #198754;
    opacity: 0.7;
}

.event-item.cancelled {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    text-decoration: line-through;
}

/* Sidebar admin */
.admin-sidebar {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.admin-sidebar .nav-link {
    color: #495057;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Stats cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

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

.stat-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Imagen preview */
.image-preview {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
}

.image-preview img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-preview .remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
}

/* Spinner de carga */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Badges personalizados */
.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .admin-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Contenido de casos */
.caso-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.caso-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.caso-content h2,
.caso-content h3,
.caso-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.caso-content ul,
.caso-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}