/* Telemed Advisors - Custom Styles */

/* Root Variables - Healthcare/Medical Theme */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #17a2b8;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --medical-blue: #2c5aa0;
    --medical-green: #00a65a;
    --medical-light-blue: #e7f1ff;
    --medical-light-green: #e8f5e8;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Custom Bootstrap Color Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--medical-blue) 0%, var(--secondary-color) 100%);
}

.text-primary {
    color: var(--medical-blue) !important;
}

.btn-primary {
    background-color: var(--medical-blue);
    border-color: var(--medical-blue);
}

.btn-primary:hover {
    background-color: #1e4080;
    border-color: #1e4080;
}

.btn-outline-primary {
    color: var(--medical-blue);
    border-color: var(--medical-blue);
}

.btn-outline-primary:hover {
    background-color: var(--medical-blue);
    border-color: var(--medical-blue);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.15);
}

.service-icon {
    transition: transform 0.3s ease;
}

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

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

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

.navbar-nav .nav-link:hover {
    color: var(--medical-blue) !important;
}

/* Portal Sidebar */
.sidebar {
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: var(--medical-blue);
    background-color: var(--medical-light-blue);
}

.sidebar .nav-link.active {
    color: var(--medical-blue);
    background-color: var(--medical-light-blue);
    border-right: 3px solid var(--medical-blue);
}

.sidebar .nav-link i {
    width: 16px;
    text-align: center;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 12px 12px 0 0 !important;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-primary {
    background-color: var(--medical-light-blue);
    border-left-color: var(--medical-blue);
    color: var(--medical-blue);
}

.alert-success {
    background-color: var(--medical-light-green);
    border-left-color: var(--medical-green);
    color: var(--medical-green);
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--medical-blue);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}

.timeline-content h5 {
    color: var(--medical-blue);
    margin-bottom: 0.5rem;
}

/* Testimonials */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--medical-blue);
    border-radius: 50%;
    padding: 1rem;
}

/* Pricing Cards */
.card.border-primary {
    border-color: var(--medical-blue) !important;
    border-width: 2px !important;
}

/* Message and File Lists */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 1rem;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item.list-group-item-primary {
    background-color: var(--medical-light-blue);
    border-left: 4px solid var(--medical-blue);
}

/* Activity Feed */
.activity-feed .d-flex {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.activity-feed .d-flex:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: 6px;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(44, 90, 160, 0.05);
}

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

footer a,
footer a.text-muted {
    color: #ffffff !important;
}

footer a:hover {
    color: var(--medical-blue) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .sidebar {
        width: 240px;
    }
    
    main {
        margin-left: 240px;
    }
}

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

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

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--medical-blue);
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .modal {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Accessibility */
.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 states */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--medical-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 1px solid #000;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
