/**
 * Estilos Principales del Sistema Pantera Rosa Veterinaria
 * Diseño Responsivo y Moderno
 */

:root {
    --primary-color: <?php echo COLOR_PRIMARY; ?>;
    --secondary-color: <?php echo COLOR_SECONDARY; ?>;
    --accent-color: <?php echo COLOR_ACCENT; ?>;
    --success-color: <?php echo COLOR_SUCCESS; ?>;
    --warning-color: <?php echo COLOR_WARNING; ?>;
    --danger-color: <?php echo COLOR_DANGER; ?>;
    --info-color: <?php echo COLOR_INFO; ?>;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}


/* SIDEBAR - CORREGIDO PARA MEJOR CONTRASTE */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, #1a2530 0%, #0f1720 100%); /* Fondo más oscuro para mejor contraste */
    color: #e0e0e0; /* Texto más claro */
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 3px 0 15px rgba(0,0,0,0.3);
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.sidebar-header .logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border: 4px solid #FF69B4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.sidebar-header h3 {
    color: #FF69B4;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.sidebar-header small {
    color: rgba(255,255,255,0.75); /* Texto más visible */
    font-size: 0.9rem;
}

.sidebar-menu {
    padding: 20px 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    color: rgba(255,255,255,0.88); /* Texto más claro */
    padding: 14px 25px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link span {
    margin-left: 12px;
    letter-spacing: 0.3px;
}

.nav-link:hover, .nav-link.active {
    color: white; /* Blanco puro al hacer hover/activo */
    background: rgba(255, 105, 180, 0.15); /* Rosa suave de fondo */
    border-left-color: #FF69B4;
    transform: translateX(5px);
}

.nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    min-width: 22px;
}

.nav-link:hover i, .nav-link.active i {
    color: #FF69B4; /* Icono rosa al hacer hover */
}


/* Topbar */
.topbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 20px 30px;
    min-height: calc(100vh - 70px);
    transition: all 0.3s ease;
}

.main-content.shifted {
    margin-left: 0;
}

/* Card Custom */
.card-custom {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #ff1493);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: bold;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header i {
    margin-right: 10px;
}

.card-body {
    padding: 20px;
}

/* Botones Personalizados */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff1493;
    border-color: #ff1493;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

/* Badges */
.badge-custom {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

.badge-pendiente { 
    background: var(--warning-color); 
    color: white;
}

.badge-proceso { 
    background: var(--accent-color); 
    color: white;
    animation: pulse 2s infinite;
}

.badge-completada { 
    background: var(--success-color); 
    color: white;
}

.badge-cancelada { 
    background: var(--danger-color); 
    color: white;
}

.badge-urgente {
    background: #ff4444;
    color: white;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

/* Ficha Display */
.ficha-display {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    margin: 30px auto;
    border: 3px solid var(--primary-color);
}

.ficha-numero {
    font-size: 70px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 25px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.qr-code {
    margin: 30px 0;
}

.qr-code img {
    max-width: 220px;
    border: 4px solid var(--primary-color);
    border-radius: 15px;
    padding: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.8);
    padding: 20px 0;
    margin-top: 40px;
}

/* Estadísticas Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card .label {
    color: #666;
    font-size: 0.9rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    padding: 10px;
    background: rgba(255,255,255,0.2);
}

/* Formulario Estilo */
.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

/* Tabla Estilo */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #ff1493);
    color: white;
}

.table tbody tr:hover {
    background-color: rgba(255, 105, 180, 0.05);
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}