/* CSS Variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Enhanced Navigation Styling - RedboxRx inspired */
.navbar {
    padding: 1rem 0;
    background: white !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    margin-right: 3rem;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.navbar-brand i {
    font-size: 1.8rem;
    margin-right: 0.75rem;
}

/* Navigation Links - Larger and bolder like RedboxRx */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50 !important;
    padding: 0.75rem 1.5rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(102, 126, 234, 0.15);
}

/* Dropdown styling */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0,0,0,0.1);
}

/* Buttons in navbar */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* User dropdown in navbar */
.navbar-nav .nav-link.dropdown-toggle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #495057 !important;
    background-color: rgba(108, 117, 125, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1.25rem !important;
    margin-left: 1rem;
}

.navbar-nav .nav-link.dropdown-toggle:hover {
    background-color: rgba(102, 126, 234, 0.15);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.dropdown-toggle i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Progress Bar Styles */
.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

/* Sidebar Styles */
.sidebar {
    min-height: calc(100vh - 76px);
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #495057;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Main Content */
.main-content {
    padding: 2rem;
}

/* Status Badges */
.status-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
}

.status-pending { 
    background-color: #fff3cd; 
    color: #856404; 
}

.status-assigned { 
    background-color: #d1ecf1; 
    color: #0c5460; 
}

.status-in-progress { 
    background-color: #d4edda; 
    color: #155724; 
}

.status-completed { 
    background-color: #d1ecf1; 
    color: #0c5460; 
}

.status-cancelled { 
    background-color: #f8d7da; 
    color: #721c24; 
}

/* Card Types */
.consultation-card {
    border-left: 4px solid var(--primary-color);
}

.prescription-card {
    border-left: 4px solid var(--success-color);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Styles */
.video-container {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Chat Styles */
.chat-container {
    height: 400px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.sent {
    text-align: right;
}

.chat-message .message-bubble {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    max-width: 70%;
}

.chat-message.received .message-bubble {
    background-color: #e9ecef;
    color: #495057;
}

.chat-message.sent .message-bubble {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.5rem;
        margin-right: 1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.05rem;
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link.dropdown-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
        background-color: transparent;
        border: 2px solid #e9ecef;
    }
    
    .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 76px;
        left: -250px;
        width: 250px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        padding: 1rem;
    }
}