/* ==========================================================
   NOTES PAGE
========================================================== */

.notes-page{
    padding:30px;
}

/* ==========================================================
   HEADER
========================================================== */

.notes-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.notes-header h1{
    color:#fff;
    font-size:32px;
    font-weight:700;
    margin-bottom:6px;
}

.notes-header p{
    color:#94A3B8;
    margin:0;
}

.notes-actions{
    display:flex;
    gap:12px;
}

/* ==========================================================
   SUMMARY
========================================================== */

.notes-summary{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-bottom:30px;

}

.summary-card{

    background:#17263B;

    border:1px solid #243246;

    border-radius:18px;

    padding:22px;

    transition:.3s;

}

.summary-card:hover{

    transform:translateY(-5px);

    border-color:#22C55E;

    box-shadow:0 15px 35px rgba(0,0,0,.35);

}

.summary-card span{

    display:block;

    color:#94A3B8;

    margin-bottom:10px;

    font-size:14px;

}

.summary-card h2{

    margin:0;

    color:#fff;

    font-size:28px;

    font-weight:700;

}

/* ==========================================================
   GRID
========================================================== */

.notes-grid{

    display:grid;

    grid-template-columns:300px 1fr;

    gap:25px;

}

/* ==========================================================
   CARD
========================================================== */

.note-card{

    background:#17263B;

    border:1px solid #243246;

    border-radius:20px;

    overflow:hidden;

}

.note-card .card-header{

    background:#1D2E46;

    padding:18px 22px;

    border-bottom:1px solid #243246;

}

.note-card .card-header h3{

    color:#fff;

    margin:0;

    font-size:20px;

    font-weight:600;

}

.note-card .card-body{

    padding:25px;

}

/* ==========================================================
   CATEGORY
========================================================== */

.category-list{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.category-btn{

    width:100%;

    background:#101B2E;

    color:#CBD5E1;

    border:1px solid #243246;

    padding:14px 18px;

    text-align:left;

    border-radius:12px;

    transition:.25s;

    cursor:pointer;

}

.category-btn:hover{

    border-color:#22C55E;

    color:#fff;

    transform:translateX(5px);

}

.category-btn.active{

    background:#22C55E;

    color:#fff;

    border-color:#22C55E;

}

/* ==========================================================
   TAGS
========================================================== */

#tagCloud{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.tag-chip{

    padding:8px 14px;

    border-radius:25px;

    background:#101B2E;

    color:#22C55E;

    border:1px solid #243246;

    cursor:pointer;

    transition:.25s;

}

.tag-chip:hover{

    background:#22C55E;

    color:#fff;

}

/* ==========================================================
   SEARCH
========================================================== */

#searchNotes{

    background:#101B2E;

    border:1px solid #243246;

    color:#fff;

}

#searchNotes:focus{

    border-color:#22C55E;

    box-shadow:none;

}

/* ==========================================================
   NOTE ITEM
========================================================== */

.note-item{

    padding:20px;

    border-bottom:1px solid #243246;

    transition:.25s;

    cursor:pointer;

}

.note-item:last-child{

    border-bottom:none;

}

.note-item:hover{

    background:#22344A;

}

.note-item h4{

    color:#fff;

    margin-bottom:8px;

    font-size:19px;

}

.note-item p{

    color:#94A3B8;

    margin-bottom:15px;

}

.note-meta{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:12px;

}

.note-category{

    background:#2563EB;

    color:#fff;

    padding:5px 12px;

    border-radius:20px;

    font-size:13px;

}

.note-date{

    color:#94A3B8;

    font-size:13px;

}

.note-tags{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}

.note-tags span{

    background:#101B2E;

    border:1px solid #243246;

    color:#CBD5E1;

    padding:4px 10px;

    border-radius:18px;

    font-size:12px;

}

.note-actions{

    margin-top:15px;

    display:flex;

    gap:10px;

}

.note-actions button{

    width:36px;

    height:36px;

    border:none;

    border-radius:10px;

    color:#fff;

    transition:.25s;

}

.note-actions button:hover{

    transform:scale(1.08);

}

.btn-view{

    background:#2563EB;

}

.btn-edit{

    background:#F59E0B;

}

.btn-delete{

    background:#DC2626;

}

.btn-favorite{

    background:#16A34A;

}

/* ==========================================================
   AI PANEL
========================================================== */

#notesAI{

    color:#fff;

}

.ai-box{

    background:#101B2E;

    border-left:4px solid #22C55E;

    border-radius:12px;

    padding:20px;

}

.ai-box h4{

    color:#22C55E;

    margin-bottom:15px;

}

.ai-box ul{

    margin-bottom:20px;

    padding-left:20px;

}

.ai-box li{

    margin-bottom:8px;

}

/* ==========================================================
   MODAL
========================================================== */

.modal-content{

    border:none;

    border-radius:20px;

}

.modal-header{

    border-bottom:1px solid #243246;

}

.modal-footer{

    border-top:1px solid #243246;

}

.modal label{

    color:#CBD5E1;

    margin-bottom:8px;

    font-weight:500;

}

.modal .form-control,
.modal .form-select{

    background:#101B2E;

    border:1px solid #243246;

    color:#fff;

}

.modal .form-control:focus,
.modal .form-select:focus{

    border-color:#22C55E;

    box-shadow:none;

}

/* ==========================================================
   SCROLLBAR
========================================================== */

.notes-content{

    max-height:900px;

    overflow:auto;

}

.notes-content::-webkit-scrollbar{

    width:8px;

}

.notes-content::-webkit-scrollbar-thumb{

    background:#243246;

    border-radius:20px;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:1200px){

.notes-grid{

grid-template-columns:1fr;

}

}

@media(max-width:992px){

.notes-summary{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.notes-page{

padding:20px;

}

.notes-summary{

grid-template-columns:1fr;

}

.notes-header{

flex-direction:column;

align-items:flex-start;

}

.notes-actions{

width:100%;

}

.notes-actions .btn{

width:100%;

}

#searchNotes{

max-width:100%!important;

margin-top:15px;

}

.note-card .card-header{

flex-direction:column;

align-items:flex-start!important;

gap:15px;

}

}