/* style.css */

/* --- সাধারণ স্টাইল --- */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- নেভিগেশন বার --- */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link i {
    margin-right: 5px;
}

/* --- কার্ড ডিজাইন --- */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-header {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    font-weight: bold;
    border-bottom: none;
    border-radius: 10px 10px 0 0 !important;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 10px;
}

/* --- ড্যাশবোর্ডের হেডার --- */
.welcome-header {
    color: #333;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 20px !important;
    font-weight: 600;
}

/* --- বিষয় ও অধ্যায়ের লিস্ট --- */
.subject-card-body, .chapter-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
}

.subject-name, .chapter-name {
    font-size: 1.15rem;
    font-weight: 500;
    color: #343a40;
}

/* --- অ্যাকশন বাটন --- */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn {
    border-radius: 50px; /* गोलाकार बटन */
    width: 38px;
    height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

/* --- মডাল (Modal) --- */
.modal-header {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- নিজস্ব টেক্সট এডিটরের জন্য স্টাইল --- */
.editor-toolbar {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px;
    border-radius: 5px 5px 0 0;
}

.toolbar-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 16px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.toolbar-button:hover {
    background-color: #e2e6ea;
}

#noteEditor {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 15px;
    min-height: 400px;
    width: 100%;
    border-radius: 0 0 5px 5px;
    overflow-y: auto;
    background-color: #fff;
}

#noteEditor:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
/* style.css */

/* --- আগের সমস্ত স্টাইল এখানে থাকবে... --- */

/* ... (body, navbar, card, welcome-header, action-buttons, editor-toolbar ইত্যাদির স্টাইল) ... */


/* --- নোট দেখার পেজের জন্য নতুন স্টাইল --- */
.note-view-content {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    min-height: 300px;
    line-height: 1.7; /* পড়ার জন্য আরামদায়ক */
    font-size: 1.1rem; /* পড়ার জন্য ভালো ফন্ট সাইজ */
    color: #333;
}

/* নোটের ভিতরের হেডিংগুলোকে সুন্দর করা */
.note-view-content h1,
.note-view-content h2,
.note-view-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #0d6efd;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 5px;
}

/* যখন কোনো নোট থাকে না, তখনকার মেসেজ */
.no-note-message {
    color: #6c757d;
}