/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* Colores corporativos */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff9900;
    --accent-color: #339933;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #005bb8;
    border-color: #005bb8;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Estilos para tarjetas */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: rgba(0, 102, 204, 0.1);
    font-weight: bold;
}

/* Estilos para formularios */
.form-control {
    border-radius: 5px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 500;
}

.required::after {
    content: "*";
    color: red;
    margin-left: 3px;
}

/* Estilos para tablas */
.table {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: rgba(0, 102, 204, 0.1);
}

/* Panel del paciente */
.dashboard-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-body {
    flex-grow: 1;
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Estilos para banner principal */
.hero-banner {
    background: linear-gradient(to right, var(--primary-color), #004d99);
    color: white;
    padding: 50px 0;
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero-banner h1 {
    font-weight: 700;
}

/* Estilos para widgets */
.widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Estilos para botones de acción */
.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Estilos para alertas */
.alert {
    border-radius: 10px;
}

/* Estilos para radiografías */
.radiografia-card {
    position: relative;
    overflow: hidden;
}

.radiografia-card img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.radiografia-card:hover img {
    transform: scale(1.05);
}

.radiografia-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.radiografia-card:hover .radiografia-overlay {
    opacity: 1;
}

/* Estilos para el perfil */
.profile-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-info {
    flex-grow: 1;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .dashboard-icon {
        font-size: 2rem;
    }
    
    .hero-banner {
        padding: 30px 0;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .table-responsive {
        margin-bottom: 0;
    }
}

/* Estilos para tablets */
@media (min-width: 769px) and (max-width: 992px) {
    .dashboard-icon {
        font-size: 2.2rem;
    }
}

/* Estilos para pantallas grandes */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}