 :root {
     --primary: #4361ee; --primary-dark: #3a56d4; --primary-light: #eef2ff; --secondary: #7209b7;
     --accent: #4cc9f0; --success: #4bb543; --warning: #ff9f1c; --danger: #e63946;
     --light: #f8f9fa; --dark: #212529; --gray: #6c757d; --light-gray: #e9ecef;
     --border-radius: 12px; --border-radius-sm: 8px; --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15); --transition: all 0.3s ease;
 }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f5f7fb; color: var(--dark); line-height: 1.6; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
header { background:#ffffff; color:#333; padding:18px 0; box-shadow:0 4px 12px rgba(0,0,0,0.1); position:sticky; top:0; z-index:100; border-bottom:1px solid #e5e5e5; }

.header-content .nav-link { color:#333; }
.header-content .nav-link:hover { color:#000; }
.logo span, .user-info span { color:#333; }

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.8rem; font-weight: 700; }
.logo i { font-size: 2rem; }
.user-info { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.2); padding: 10px 20px; border-radius: 50px; backdrop-filter: blur(10px); }
.user-info i { font-size: 1.3rem; }
.main-content { display: flex; gap: 30px; margin: 30px 0; }
.sidebar { flex: 0 0 280px; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 25px; height: fit-content; position: sticky; top: 100px; }
.sidebar-section { margin-bottom: 30px; }
.sidebar-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.sidebar-title i { color: var(--primary); }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
select { width: 100%; padding: 12px 15px; border-radius: var(--border-radius-sm); border: 1px solid var(--light-gray); font-size: 1rem; transition: var(--transition); background-color: white; }
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2); }
.btn { padding: 12px 20px; border-radius: var(--border-radius-sm); border: none; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background-color: var(--light-gray); color: var(--dark); }
.btn-secondary:hover { background-color: #d1d5db; }
.btn-full { width: 100%; }
.content-area { flex: 1; }
.page-title { margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; }
.page-title h1 { font-size: 2.2rem; color: var(--dark); font-weight: 700; }
.page-title p { color: var(--gray); font-size: 1.1rem; margin-top: 5px; }
.stats { display: flex; gap: 15px; }
.stat-badge { background: white; padding: 10px 20px; border-radius: var(--border-radius-sm); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stat-badge i { color: var(--primary); }
.actions-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; gap: 15px; }
.search-box { flex: 1; max-width: 500px; position: relative; }
.search-box input { width: 100%; padding: 14px 20px 14px 45px; border-radius: var(--border-radius-sm); border: 1px solid var(--light-gray); font-size: 1rem; transition: var(--transition); }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2); }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.view-toggle { display: flex; background: white; border-radius: var(--border-radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.view-toggle button { padding: 12px 20px; border: none; background: white; cursor: pointer; transition: var(--transition); }
.view-toggle button.active { background: var(--primary); color: white; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin-bottom: 40px; }
.note-card { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.note-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.note-header { padding: 20px; border-bottom: 1px solid var(--light-gray); position: relative; }
.note-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); line-height: 1.3; }
.note-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--gray); font-size: 0.9rem; }
.note-meta span { display: flex; align-items: center; gap: 5px; }
.note-badge { position: absolute; top: 20px; right: 20px; background: var(--primary-light); color: var(--primary); padding: 4px 10px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.note-content-preview { padding: 20px; flex-grow: 1; color: var(--gray); line-height: 1.6; }
.note-footer { padding: 15px 20px; background: var(--light); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--light-gray); }
.note-actions { display: flex; gap: 10px; }
.btn-icon { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 1.1rem; transition: var(--transition); padding: 8px; border-radius: 50%; }
.btn-icon:hover { background: var(--light-gray); color: var(--primary); }
.btn-icon.disabled { cursor: not-allowed; color: #ccc; }
.btn-view { background-color: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: var(--border-radius-sm); cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.btn-view:hover { background-color: var(--primary-dark); }
.empty-state { text-align: center; padding: 60px 20px; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); margin: 40px 0; }
.empty-state i { font-size: 5rem; color: var(--light-gray); margin-bottom: 20px; }
.empty-state h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--dark); }
.empty-state p { color: var(--gray); max-width: 500px; margin: 0 auto 25px; font-size: 1.1rem; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; overflow-y: auto; padding: 20px; }
.modal-content { background-color: white; margin: 40px auto; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); max-width: 900px; width: 100%; position: relative; animation: modalFadeIn 0.3s ease; }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 25px 30px; border-bottom: 1px solid var(--light-gray); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 1.8rem; font-weight: 700; color: var(--dark); }
.modal-meta { display: flex; gap: 15px; margin-top: 10px; color: var(--gray); font-size: 1rem; }
.close-btn { font-size: 1.8rem; cursor: pointer; color: var(--gray); transition: var(--transition); line-height: 1; }
.close-btn:hover { color: var(--dark); }
.modal-body { padding: 30px; max-height: 70vh; overflow-y: auto; }
.note-content-modal { line-height: 1.7; font-size: 1.1rem; }
.note-content-modal h1, .note-content-modal h2, .note-content-modal h3 { margin-top: 25px; margin-bottom: 15px; color: var(--dark); }
.note-content-modal p { margin-bottom: 20px; }
.note-content-modal ul, .note-content-modal ol { margin-left: 25px; margin-bottom: 20px; }
.note-content-modal blockquote { border-left: 4px solid var(--primary); padding-left: 20px; margin: 20px 0; font-style: italic; color: var(--gray); }
.note-content-modal code { background: var(--light); padding: 2px 6px; border-radius: 4px; font-family: monospace; }
.note-content-modal pre { background: var(--dark); color: white; padding: 20px; border-radius: var(--border-radius-sm); overflow-x: auto; margin: 20px 0; }
footer { background: var(--dark); color: white; padding: 40px 0; margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-section { flex: 1; min-width: 250px; }
.footer-section h3 { font-size: 1.3rem; margin-bottom: 20px; color: white; }
.footer-section p { color: #adb5bd; margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #adb5bd; text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #495057; color: #adb5bd; }
@media (max-width: 1024px) { .main-content { flex-direction: column; } .sidebar { position: static; width: 100%; } .notes-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
@media (max-width: 768px) { .header-content { flex-direction: column; gap: 15px; text-align: center; } .page-title { flex-direction: column; align-items: flex-start; gap: 15px; } .stats { width: 100%; justify-content: space-between; } .actions-bar { flex-direction: column; align-items: stretch; } .search-box { max-width: 100%; } .notes-grid { grid-template-columns: 1fr; } .footer-content { flex-direction: column; } }
.nav .nav-link{color: rgba(18, 1, 1, 0.9) !important;text-decoration:none!important;position:relative;transition:color .25s ease,padding .25s ease;}  .nav .nav-link:hover{color: #0476f6 !important;}  .nav .nav-link::after{content:"";position:absolute;left:50%;bottom:-3px;width:0;height:2px;background: #fb0505;transition:all .3s ease;transform:translateX(-50%);}  .nav .nav-link:hover::after{width:70%;}

