/* Custom CSS for Daktarbabu Healthcare App */

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

/* Body and General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: rgba(13, 110, 253, 0.1);
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
    font-weight: 600;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--healthcare-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 1rem 1rem;
}

/* Badge Enhancements */
.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Table Enhancements */
.table th {
    font-weight: 600;
    border-bottom: 2px solid var(--healthcare-primary);
    color: var(--healthcare-primary);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Footer Styles */
footer {
    margin-top: auto;
}

/* Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--healthcare-primary) 0%, var(--healthcare-info) 100%);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom Form Validation */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--healthcare-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 3.35-3.35.94-.94L8.5 3.5l-.94.94L4.5 7.5l-.94.94zm0 0'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--healthcare-danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1m0-1-1 1'/%3e%3c/svg%3e");
}

/* Health-focused Color Scheme */
.text-health-primary {
    color: var(--healthcare-primary) !important;
}

.bg-health-light {
    background-color: var(--healthcare-light) !important;
}

.border-health-primary {
    border-color: var(--healthcare-primary) !important;
}

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

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

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .card {
    background-color: var(--bs-dark);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(13, 110, 253, 0.2);
    border-bottom: 1px solid rgba(13, 110, 253, 0.3);
    color: white;
}

[data-bs-theme="dark"] .table th {
    color: var(--bs-primary);
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Indicators */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--healthcare-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
