/* Advisor Detail Page */
.advisor-detail-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem 0;
}

.advisor-detail-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: white;
}

.advisor-detail-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.advisor-detail-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
}

.advisor-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.advisor-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #1e293b;
}

.advisor-status-online {
    background: #10b981;
}

.advisor-status-offline {
    background: #6b7280;
}

.advisor-detail-content {
    flex: 1;
    min-width: 300px;
}

.advisor-detail-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.advisor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.specialty-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.specialty-tag.large {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.advisor-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex-wrap: wrap;
}

.advisor-detail-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #6b7280;
    font-size: 1rem;
}

.rating-stars i.active {
    color: #fbbf24;
}

.rating-value {
    color: white;
    font-weight: 600;
    margin: 0 0.5rem;
}

.rating-count {
    color: #94a3b8;
    font-size: 0.875rem;
}

.advisor-detail-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.advisor-detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.advisor-section {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advisor-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.advisor-bio-full {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 1rem;
}

.advisor-specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.advisor-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.advisor-action-card,
.advisor-info-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advisor-action-card h3,
.advisor-info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.advisor-action-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.info-item i.online {
    color: #10b981;
}

.info-item i.offline {
    color: #6b7280;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal.show,
.modal[style*="flex"] {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1e293b;
    color: white;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 968px) {
    .advisor-detail-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .advisor-detail-info {
        flex-direction: column;
        text-align: center;
    }
    
    .advisor-detail-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .advisor-detail-content h1 {
        font-size: 2rem;
    }
    
    .advisor-detail-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}
