/* --- Background & Layout --- */
body {
    background-color: #f8f9fa;
}

/* --- Post Box Styling --- */
.post-box-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.btn-white {
    background: white;
    color: #333;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.btn-white:hover, .active-filter {
    background: #4f46e5 !important;
    color: white !important;
    border-color: #4f46e5 !important;
}

/* --- Doubt Card Styling --- */
.doubt-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.doubt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
}

/* Role Badges */
.badge-teacher {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.badge-student {
    background-color: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Doubt Image */
.doubt-image {
    max-height: 300px;
    width: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: zoom-in;
    margin-top: 10px;
}

/* --- Comment Section --- */
.comments-section {
    background-color: #f8fafc;
    border-radius: 12px;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #f1f5f9;
}

.comment-bubble {
    background: white;
    padding: 10px 15px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    font-size: 0.9rem;
    position: relative;
    border: 1px solid #eee;
}

.comment-input-box {
    border-radius: 20px;
    padding-right: 50px; /* Space for button */
}

.btn-send-comment {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #4f46e5;
    background: none;
    border: none;
    font-weight: bold;
}
.btn-send-comment:hover {
    color: #3730a3;
}




.sidebar-header {
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.4rem;
    text-transform: lowercase; /* Professional look ke liye sab small */
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--sidebar-link-color);
    display: block;
    margin-top: -2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Logo hover effect */
.sidebar-header a:hover .brand-name {
    color: var(--secondary-color);
    transition: 0.3s;
}

.target-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.target-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

#sidebar-goal-text {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}