/**
 * Doctor Panel Styles
 * Specific styles for doctor dashboard and case management
 */

/* ============================================
   DOCTOR SIDEBAR
   ============================================ */
.doctor-sidebar {
    background: linear-gradient(135deg, #1a472a 0%, #0d2818 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    z-index: 100;
    transition: var(--transition);
}

.doctor-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.doctor-sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
}

.doctor-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.doctor-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   DOCTOR MAIN CONTENT
   ============================================ */
.doctor-main {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: var(--transition);
}

/* ============================================
   WELCOME BANNER
   ============================================ */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    color: white;
    margin-bottom: 25px;
}

/* ============================================
   CASE MANAGEMENT
   ============================================ */
.case-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.case-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

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

.case-status-closed {
    background: #e2e3e5;
    color: #383d41;
}

/* ============================================
   REPERTORY BROWSER
   ============================================ */
.repertory-browser {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    min-height: 500px;
}

.rubric-search-box {
    position: sticky;
    top: 0;
    background: white;
    padding: 10px;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

/* ============================================
   MATERIA MEDICA
   ============================================ */
.materia-medica-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.materia-medica-content {
    line-height: 1.8;
    font-size: 15px;
}

.modality-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

/* ============================================
   REMINDER CARDS
   ============================================ */
.reminder-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.reminder-card:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.reminder-overdue {
    border-left-color: var(--danger-color);
    background: #fff5f5;
}

.reminder-today {
    border-left-color: var(--warning-color);
    background: #fffbf0;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: var(--dark-color);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.quick-action-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

/* ============================================
   PRESCRIPTION
   ============================================ */
.prescription-card {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.prescription-remedy {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ============================================
   FOLLOW-UP
   ============================================ */
.followup-timeline {
    position: relative;
    padding-left: 30px;
}

.followup-timeline:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.followup-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.followup-item:before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
}

/* ============================================
   GRADE DISPLAY
   ============================================ */
.grade-4 {
    font-weight: bold;
    text-decoration: underline;
    color: #000;
}

.grade-3 {
    font-weight: bold;
    color: #dc3545;
}

.grade-2 {
    font-style: italic;
    color: #0066cc;
}

.grade-1 {
    font-weight: normal;
    color: #000;
}

.grade-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin: 2px;
}

.grade-badge-4 {
    background: #ffeb3b;
    font-weight: bold;
    text-decoration: underline;
}

.grade-badge-3 {
    background: #ffcdd2;
    color: #c62828;
    font-weight: bold;
}

.grade-badge-2 {
    background: #bbdefb;
    color: #1565c0;
    font-style: italic;
}

.grade-badge-1 {
    background: #e0e0e0;
}

/* ============================================
   AI ANALYSIS
   ============================================ */
.ai-analysis-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.ai-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-height: 300px;
    white-space: pre-wrap;
    font-family: monospace;
}