/* ==========================================================
   TAGS PAGE
========================================================== */

.tags-page{
    padding:30px;
}

/* ==========================================================
   HEADER
========================================================== */

.tags-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.tags-header h1{
    color:#fff;
    font-size:32px;
    font-weight:700;
    margin-bottom:6px;
}

.tags-header p{
    color:#94A3B8;
    margin:0;
}

.tags-actions{
    display:flex;
    gap:12px;
}

/* ==========================================================
   SUMMARY
========================================================== */

.tags-summary{

    display:grid;

    grid-template-columns:repeat(5,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
========================================================== */

.tags-grid{

    display:grid;

    grid-template-columns:300px 1fr;

    gap:25px;

}

/* ==========================================================
   CARD
========================================================== */

.tag-card{

    background:#17263B;

    border:1px solid #243246;

    border-radius:20px;

    overflow:hidden;

}

.tag-card .card-header{

    background:#1D2E46;

    padding:18px 22px;

    border-bottom:1px solid #243246;

}

.tag-card .card-header h3{

    margin:0;

    color:#fff;

    font-size:20px;

    font-weight:600;

}

.tag-card .card-body{

    padding:25px;

}

/* ==========================================================
   CATEGORY
========================================================== */

.category-list{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.category-btn{

    width:100%;

    background:#101B2E;

    border:1px solid #243246;

    color:#CBD5E1;

    padding:14px 18px;

    border-radius:12px;

    text-align:left;

    cursor:pointer;

    transition:.25s;

}

.category-btn:hover{

    transform:translateX(5px);

    border-color:#22C55E;

    color:#fff;

}

.category-btn.active{

    background:#22C55E;

    border-color:#22C55E;

    color:#fff;

}

/* ==========================================================
   TAG ITEM
========================================================== */

.tag-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    padding:18px;

    background:#101B2E;

    border:1px solid #243246;

    border-radius:15px;

    margin-bottom:15px;

    transition:.3s;

}

.tag-item:hover{

    border-color:#22C55E;

    transform:translateY(-3px);

}

.tag-left{

    display:flex;

    align-items:center;

    gap:15px;

}

.tag-color{

    width:16px;

    height:16px;

    border-radius:50%;

    flex-shrink:0;

}

.tag-info h4{

    color:#fff;

    margin-bottom:6px;

    font-size:18px;

}

.tag-info small{

    color:#94A3B8;

}

.tag-count{

    background:#22C55E;

    color:#fff;

    padding:5px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

}

/* ==========================================================
   POPULAR TAGS
========================================================== */

#popularTags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.popular-tag{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:8px 15px;

    border-radius:25px;

    background:#101B2E;

    color:#fff;

    border:1px solid #243246;

    transition:.3s;

    cursor:pointer;

}

.popular-tag:hover{

    background:#22C55E;

    border-color:#22C55E;

}

/* ==========================================================
   SEARCH
========================================================== */

#searchTag{

    background:#101B2E;

    border:1px solid #243246;

    color:#fff;

}

#searchTag:focus{

    border-color:#22C55E;

    box-shadow:none;

}

/* ==========================================================
   ACTION BUTTONS
========================================================== */

.tag-actions{

    display:flex;

    gap:8px;

}

.tag-actions button{

    width:36px;

    height:36px;

    border:none;

    border-radius:10px;

    color:#fff;

    transition:.25s;

}

.tag-actions button:hover{

    transform:scale(1.08);

}

.btn-view{

    background:#2563EB;

}

.btn-edit{

    background:#F59E0B;

}

.btn-delete{

    background:#DC2626;

}

/* ==========================================================
   CHART
========================================================== */

#tagChart{

    width:100%;

}

/* ==========================================================
   AI PANEL
========================================================== */

#tagAI{

    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{

    padding-left:20px;

    margin-bottom: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;

}

.form-control-color{

    width:80px;

    height:50px;

    padding:4px;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:1200px){

.tags-grid{

grid-template-columns:1fr;

}

}

@media(max-width:992px){

.tags-summary{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.tags-page{

padding:20px;

}

.tags-summary{

grid-template-columns:1fr;

}

.tags-header{

flex-direction:column;

align-items:flex-start;

}

.tags-actions{

width:100%;

}

.tags-actions .btn{

width:100%;

}

.tag-item{

flex-direction:column;

align-items:flex-start;

}

.tag-actions{

width:100%;

justify-content:flex-end;

}

#searchTag{

max-width:100%!important;

margin-top:15px;

}

.tag-card .card-header{

flex-direction:column;

align-items:flex-start!important;

gap:15px;

}

}