/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fc;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.content {
    margin-left: 280px;
    flex: 1;
    padding: 20px;
}

.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

.widget-icon {
    font-size: 2rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .content {
        margin-left: 0;
    }
    .toggle-sidebar {
        display: block;
    }
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Tabs */
.nav-tabs .nav-link {
    color: #4e73df;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #224abe;
    font-weight: 600;
}

/* Profile image */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #4e73df;
}

/* Print styles */
@media print {
    .sidebar, .btn, .no-print {
        display: none !important;
    }
    .content {
        margin-left: 0;
        padding: 0;
    }
}

/* css/style.css - Tema Médico Moderno */
:root {
    --primary-color: #2c7da0;
    --primary-dark: #1f5e7a;
    --primary-light: #61a5c2;
    --secondary-color: #2e9c7c;
    --success-color: #2e9c7c;
    --danger-color: #e76f51;
    --warning-color: #f4a261;
    --info-color: #2c7da0;
    --dark-color: #2d3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 20px;
    gap: 40px;
    align-items: center;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--box-shadow);
    animation: slideUp 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon i {
    font-size: 40px;
    color: white;
}

.login-header h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--gray-color);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 5px;
    text-align: center;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 125, 160, 0.3);
}

.login-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.info-card p {
    font-size: 14px;
    color: var(--gray-color);
    margin: 0;
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--dark-color) 0%, #1a2a3a 100%);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
}

.sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-header small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-link i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 30px;
}

.nav-link.active {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 0 8px 8px 0;
}

/* Content Area */
.content {
    margin-left: 280px;
    flex: 1;
    padding: 20px;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: white;
    border-bottom: 1px solid #eef2f7;
    padding: 20px;
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Widget Cards */
.widget-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.widget-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 48px;
    opacity: 0.1;
}

.widget-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.widget-label {
    color: var(--gray-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #eef2f7;
    color: var(--gray-color);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-programada {
    background: #fff3e0;
    color: #f4a261;
}

.badge-completada {
    background: #e0f7e8;
    color: #2e9c7c;
}

.badge-cancelada {
    background: #fee;
    color: #e76f51;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #eef2f7;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gray-color);
    font-weight: 500;
    padding: 12px 20px;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    border: none;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .login-info {
        width: 100%;
    }
}

/* Profile Section */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px;
    border-radius: var(--border-radius);
    color: white;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

/* Print Styles */
@media print {
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .content {
        margin-left: 0;
        padding: 0;
    }
    
    .card {
        break-inside: avoid;
    }
}