/* Expert Dashboard Styles */

/* Sidebar Styles */
.expert-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
}

.expert-sidebar .nav-link {
    font-weight: 500;
    color: #333;
    border-radius: 5px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}

.expert-sidebar .nav-link:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateX(2px);
}

.expert-sidebar .nav-link.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
}

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

/* Avatar Styles */
.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto;
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dashboard-card .card-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dashboard-card .card-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Status Badges */
.status-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

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

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

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

/* Consultation Cards */
.consultation-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.consultation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.consultation-card .card-body {
    padding: 1.25rem;
}

.consultation-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.consultation-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.consultation-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Message Styles */
.consultation-messages {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 20px;
    max-width: 80%;
    animation: fadeInUp 0.3s ease;
}

.user-message {
    margin-right: auto;
}

.expert-message {
    margin-left: auto;
}

.message-content {
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.expert-message .message-content {
    background: linear-gradient(135deg, #dcf8c6, #c8e6c9);
    border: 1px solid #4caf50;
}

.user-message .message-content {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
}

.message-header {
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: between;
    align-items: center;
}

.message-text {
    line-height: 1.5;
    word-wrap: break-word;
}

/* Message Form */
.message-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.message-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Profile Section */
.profile-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
.expert-main {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

@media (min-width: 768px) {
    .expert-main {
        margin-left: 16.66667%;
    }
}

@media (min-width: 992px) {
    .expert-main {
        margin-left: 16.66667%;
    }
}

@media (max-width: 767px) {
    .expert-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .expert-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-card .card-number {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-action-btn {
        min-width: auto;
    }
}

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

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

/* Unread Message Indicator */
.unread-indicator {
    position: relative;
}

.unread-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
}

.unread-count {
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
.consultation-messages::-webkit-scrollbar {
    width: 6px;
}

.consultation-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.consultation-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.consultation-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    margin-bottom: 0;
    font-size: 0.9rem;
}