*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --brand-blue:#1d4f91;
    --brand-blue-dark:#123761;
    --brand-blue-soft:#2f6db8;
    --brand-orange:#f26a21;
    --brand-orange-dark:#d95512;
    --brand-orange-soft:#fff1e8;
    --text-dark:#1f2937;
    --text-medium:#5f6c7b;
    --text-light:#d9e6f3;
    --bg-light:#f5f7fb;
    --bg-soft:#eef4fb;
    --white:#ffffff;
    --border:#e5e7eb;
}

body{
    margin:0;
    padding-top:50px;
    font-family:Arial,sans-serif;
    background:var(--bg-light);
    color:var(--text-dark);
    line-height:1.6;
}

body.modal-open{
    overflow:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    transition:0.3s ease;
}

.container{
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

.site-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:var(--white);
    border-bottom:2px solid var(--brand-orange);
    z-index:1000;
    box-shadow:0 6px 20px rgba(18,55,97,0.08);
}

.header-container{
    max-width:1200px;
    margin:0 auto;
    padding:10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.site-logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.site-logo img{
    height:58px;
    width:auto;
    display:block;
}

.site-nav{
    display:flex;
    align-items:center;
    gap:32px;
    flex-wrap:wrap;
}

.site-nav a{
    color:var(--brand-blue-dark);
    font-size:18px;
    font-weight:700;
}

.site-nav a:hover{
    color:var(--brand-orange);
}

.hero{
    background:linear-gradient(135deg,var(--brand-blue-dark) 0%,var(--brand-blue) 100%);
    padding:50px 0;
    color:var(--white);
}

.hero-grid{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:40px;
    align-items:center;
}

.hero-content h1{
    font-size:52px;
    line-height:1.15;
    margin:16px 0;
    color:var(--white);
}

.hero-content p{
    font-size:18px;
    color:var(--text-light);
    max-width:620px;
}

.badge,
.section-label,
.category{
    display:inline-block;
    font-weight:700;
    letter-spacing:0.4px;
    text-transform:uppercase;
    border-radius:999px;
}

.badge{
    background:rgba(255,255,255,0.12);
    color:var(--white);
    padding:8px 14px;
}

.section-label{
    color:var(--brand-orange);
    margin-bottom:10px;
}

.category{
    background:var(--brand-orange-soft);
    color:var(--brand-orange);
    padding:6px 12px;
}

.hero-actions{
    display:flex;
    gap:14px;
    margin-top:28px;
    flex-wrap:wrap;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 22px;
    border-radius:10px;
    font-weight:700;
    transition:0.3s ease;
}

.btn-primary{
    background:var(--brand-orange);
    color:var(--white);
    border:none;
    cursor:pointer;
}

.btn-primary:hover{
    background:var(--brand-orange-dark);
}

.btn-light{
    background:var(--white);
    color:var(--brand-blue-dark);
    border:none;
    cursor:pointer;
}

.btn-light:hover{
    background:#e8eef6;
}

.hero-card{
    background:var(--white);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(18,55,97,0.18);
}

.hero-card img{
    width:100%;
    height:280px;
    object-fit:cover;
}

.hero-card-body{
    padding:24px;
}

.hero-card-body h3{
    font-size:26px;
    margin:14px 0 10px;
    color:var(--brand-blue-dark);
}

.hero-card-body p{
    color:var(--text-medium);
    margin-bottom:16px;
}

.hero-card-body a{
    color:var(--brand-orange);
    font-weight:700;
}

.hero-card-body a:hover{
    color:var(--brand-orange-dark);
}

.section{
    padding:80px 0;
}

.section-alt{
    background:var(--bg-soft);
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:30px;
}

.section-head h2{
    font-size:36px;
    color:var(--brand-blue-dark);
}

.text-link{
    color:var(--brand-orange);
    font-weight:700;
}

.text-link:hover{
    color:var(--brand-orange-dark);
}

.post-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.post-card{
    background:var(--white);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(18,55,97,0.08);
    transition:0.3s ease;
}

.post-card:hover{
    transform:translateY(-4px);
}

.post-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.post-card-content{
    padding:24px;
}

.post-card-content h3{
    font-size:24px;
    line-height:1.3;
    margin:14px 0 12px;
    color:var(--brand-blue-dark);
}

.post-card-content p{
    color:var(--text-medium);
    margin-bottom:16px;
}

.post-card-content a{
    color:var(--brand-orange);
    font-weight:700;
}

.post-card-content a:hover{
    color:var(--brand-orange-dark);
}

.post-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:14px;
    color: #334155;
    margin-bottom:16px;
    flex-wrap:wrap;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.feature-box{
    background:var(--white);
    padding:32px;
    border-radius:18px;
    box-shadow:0 8px 30px rgba(18,55,97,0.07);
    border-top:4px solid var(--brand-orange);
}

.feature-box h3{
    color:var(--brand-blue-dark);
    margin-bottom:12px;
    font-size:24px;
}

.feature-box p{
    color:#667182;
}

.cta-box{
    background:linear-gradient(135deg,var(--brand-blue-dark) 0%,var(--brand-blue) 100%);
    color:var(--white);
    padding:40px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.cta-box h2{
    font-size:34px;
    margin:12px 0;
}

.cta-box p{
    color:var(--text-light);
    max-width:720px;
}

.page-hero{
    background:linear-gradient(135deg,var(--brand-blue-dark) 0%,var(--brand-blue) 100%);
    color:var(--white);
    padding:90px 0;
    text-align:center;
}

.page-hero h1{
    font-size:48px;
    margin:12px 0;
}

.page-hero p{
    max-width:760px;
    margin:0 auto;
    color:var(--text-light);
    font-size:18px;
}

.post-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:32px;
    align-items:start;
}

.single-post-card{
    background:var(--white);
    border-radius:22px;
    padding:36px;
    box-shadow:0 10px 35px rgba(18,55,97,0.08);
}

.single-post-card h1{
    font-size:42px;
    line-height:1.2;
    margin:16px 0;
    color:var(--brand-blue-dark);
}

.single-meta{
    margin-bottom:20px;
}

.single-post-image{
    width:100%;
    border-radius:18px;
    margin-bottom:24px;
    max-height:460px;
    object-fit:cover;
}

.single-post-content p{
    font-size:18px;
    color:#465264;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6{
    margin-bottom:16px;
}

.single-post-content ul,
.single-post-content ol{
    padding-left:22px;
}

.single-post-content a{
    color:var(--brand-orange);
    font-weight:700;
}

.single-post-content img{
    border-radius:14px;
    margin:20px 0;
}

.sidebar{
    position:sticky;
    top:120px;
}

.sidebar-box{
    background:var(--white);
    border-radius:20px;
    padding:28px;
    box-shadow:0 10px 35px rgba(18,55,97,0.08);
}

.sidebar-box h3{
    color:var(--brand-blue-dark);
    margin-bottom:16px;
    font-size:24px;
}

.sidebar-link{
    display:block;
    padding:12px 0;
    border-bottom:1px solid #edf2f7;
    color:#425066;
    font-weight:600;
}

.sidebar-link:hover{
    color:var(--brand-orange);
}

.sidebar-link:last-child{
    border-bottom:none;
}

.narrow-content{
    max-width:850px;
}

.narrow-content h2{
    color:var(--brand-blue-dark);
    margin-bottom:12px;
    margin-top:28px;
    font-size:30px;
}

.narrow-content p{
    color:#566275;
    font-size:18px;
}

.contact-grid{
    gap:30px;
    align-items:start;
}

.contact-info-box,
.contact-form-box{
    background:var(--white);
    padding:32px;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(18,55,97,0.08);
}

.contact-info-box h3,
.contact-form-box h3{
    color:var(--brand-blue-dark);
    margin-bottom:14px;
    font-size:26px;
}

.contact-info-box p{
    color:#5b6778;
    margin-bottom:14px;
}

.contact-form label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    color:var(--brand-blue-dark);
}

.contact-form input,
.contact-form textarea{
    width:100%;
    border:1px solid #d8e0ea;
    border-radius:12px;
    padding:14px 16px;
    margin-bottom:16px;
    font-size:16px;
    outline:none;
}

.contact-form input[type="file"]{
    width:100%;
    border:1px solid #d8e0ea;
    border-radius:12px;
    padding:14px 16px;
    margin-bottom:16px;
    font-size:16px;
    outline:none;
    background:#fff;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:var(--brand-orange);
}

.full-btn{
    width:100%;
    border:none;
    cursor:pointer;
}

.alert{
    padding:14px 16px;
    border-radius:12px;
    margin-bottom:18px;
    font-weight:600;
}

.alert.success{
    background:#ecfdf3;
    color:#166534;
}

.alert.error{
    background:#fef2f2;
    color:#b91c1c;
}

.not-found-box{
    background:var(--white);
    border-radius:20px;
    padding:40px;
    text-align:center;
    box-shadow:0 10px 35px rgba(18,55,97,0.08);
}

.not-found-box h2{
    color:var(--brand-blue-dark);
    margin-bottom:12px;
}

.site-footer{
    background:var(--brand-blue-dark);
    color:#d6e2ef;
    margin-top:40px;
}

.footer-wrap{
    display:flex;
    justify-content:space-between;
    gap:30px;
    padding:48px 0 28px;
    flex-wrap:wrap;
}

.footer-wrap h3{
    color:var(--white);
    margin-bottom:12px;
}

.footer-wrap a{
    color:#d6e2ef;
    margin-right:18px;
    font-weight:600;
}

.footer-wrap a:hover{
    color:var(--brand-orange);
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.08);
    text-align:center;
    padding:18px 0;
    color:#b8c8d8;
}

.admin-modal{
    display:none;
}

.admin-modal.show{
    display:block;
}

.admin-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,39,68,0.55);
    z-index:2000;
}

.admin-modal-dialog{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:min(900px,calc(100% - 30px));
    max-height:calc(100vh - 40px);
    overflow-y:auto;
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 24px 80px rgba(18,55,97,0.25);
    z-index:2001;
}

.admin-modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:20px 24px;
    border-bottom:1px solid #e5e7eb;
}

.admin-modal-header h3{
    margin:0;
    color:#123761;
    font-size:24px;
}

.admin-modal-close{
    border:none;
    background:transparent;
    font-size:32px;
    line-height:1;
    color:#123761;
    cursor:pointer;
}

.admin-modal-body{
    padding:24px;
}

.admin-blog-section{
    padding-top:0px;
}

.admin-blog-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.admin-blog-title{
    color:#123761;
}

.admin-blog-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.admin-blog-alert{
    max-width:1100px;
    margin:0 auto 20px;
}

.admin-blog-card{
    margin:0 auto;
}

.admin-blog-card-title{
    margin-bottom:20px;
    color:#123761;
}

.admin-blog-table-wrap{
    overflow-x:auto;
}

.admin-blog-table{
    width:100%;
    border-collapse:collapse;
}

.admin-blog-table th{
    padding:14px;
    text-align:left;
    border-bottom:1px solid #e5e7eb;
    background:#f5f7fb;
}

.admin-blog-table td{
    padding:14px;
    border-bottom:1px solid #e5e7eb;
    vertical-align:top;
}

.admin-blog-thumb{
    width:70px;
    height:50px;
    object-fit:cover;
    border-radius:8px;
}

.admin-blog-category-cell{
    white-space:nowrap;
}

.admin-blog-edit-link{
    margin-right:12px;
    color:#1d4f91;
    font-weight:700;
    text-decoration:none;
}

.admin-blog-delete-link{
    color:#d95512;
    font-weight:700;
    text-decoration:none;
}

.admin-blog-modal-dialog{
    max-width:980px;
}

.admin-blog-form{
    max-width:100%;
}

.admin-input,
.admin-select,
.admin-textarea{
    width:100%;
    border:1px solid #d8e0ea;
    border-radius:12px;
    padding:14px 16px;
    font-size:16px;
    outline:none;
    background:#fff;
    box-sizing:border-box;
}

.admin-textarea{
    resize:vertical;
    min-height:120px;
    font-family:inherit;
    line-height:1.6;
}

.admin-excerpt-textarea{
    min-height:120px;
}

.admin-blog-file-input{
    margin-bottom:16px;
}

.admin-blog-preview-wrap{
    display:none;
    margin:0 0 16px;
}

.admin-blog-preview-wrap.show{
    display:block;
}

.admin-blog-preview-image{
    width:180px;
    max-width:100%;
    border-radius:12px;
}

.admin-blog-form-actions{
    display:flex;
    gap:12px;
    justify-content:flex-end;
    flex-wrap:wrap;
    margin-top:10px;
}

.editor-shell{
    border:1px solid #d8e0ea;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    margin-bottom:16px;
}

.editor-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:12px;
    border-bottom:1px solid #e5e7eb;
    background:#f8fafc;
}

.editor-toolbar button,
.editor-toolbar select{
    border:1px solid #d8e0ea;
    background:#fff;
    border-radius:8px;
    padding:8px 10px;
    font-size:14px;
    cursor:pointer;
}

.editor-toolbar button:hover,
.editor-toolbar select:hover{
    background:#f1f5f9;
}

.editor-area{
    min-height:320px;
    padding:16px;
    outline:none;
    line-height:1.7;
    font-size:16px;
}

.editor-area:empty:before{
    content:attr(data-placeholder);
    color:#94a3b8;
}

.editor-area ul,
.editor-area ol{
    padding-left:22px;
}

.editor-area h1,
.editor-area h2,
.editor-area h3{
    margin:0 0 12px;
}

.ck-editor__editable_inline{
    min-height:260px;
}

@media (max-width:992px){
    .hero-grid,
    .post-layout,
    .contact-grid,
    .feature-grid,
    .post-grid{
        grid-template-columns:1fr;
    }

    .section-head,
    .cta-box{
        flex-direction:column;
        align-items:flex-start;
    }

    .hero-content h1{
        font-size:40px;
    }

    .page-hero h1,
    .single-post-card h1{
        font-size:34px;
    }

    .cta-box h2,
    .section-head h2{
        font-size:30px;
    }
}

@media (max-width:768px){
    .header-container{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
    }

    .site-logo img{
        height:48px;
    }

    .site-nav{
        gap:18px;
        flex-wrap:wrap;
    }

    body{
        padding-top:100px;
    }

    .admin-modal-dialog{
        width:calc(100% - 20px);
        max-height:calc(100vh - 20px);
    }

    .admin-modal-header,
    .admin-modal-body{
        padding:18px;
    }

    .admin-modal-header h3{
        font-size:20px;
    }
}

@media (max-width:576px){
    .container{
        width:92%;
    }

    .hero,
    .page-hero,
    .section{
        padding:60px 0;
    }

    .hero-content h1{
        font-size:32px;
    }

    .page-hero h1{
        font-size:30px;
    }

    .hero-card-body h3,
    .post-card-content h3{
        font-size:22px;
    }
}

.subscribe-form{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:12px;
}

.subscribe-form input{
    flex:1;
    min-width:240px;
    border:1px solid #d8e0ea;
    border-radius:12px;
    padding:14px 16px;
    font-size:16px;
    outline:none;
    background:#fff;
}

.footer-subscribe{
    max-width:520px;
}.footer-subscribe{
    max-width:520px;
}

.subscribe-form{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:12px;
}

.subscribe-form input{
    flex:1;
    min-width:240px;
    border:1px solid #d8e0ea;
    border-radius:12px;
    padding:14px 16px;
    font-size:16px;
    outline:none;
    background:#fff;
}

.admin-subscribe-box{
    max-width:700px;
    margin:0 auto;
}

.admin-subscriber-filter{
    display:grid;
    grid-template-columns:2fr 1fr auto;
    gap:12px;
    margin-bottom:20px;
    align-items:end;
}

.subscriber-status{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.subscriber-status-subscribed{
    background:#ecfdf3;
    color:#166534;
}

.subscriber-status-unsubscribed{
    background:#fef2f2;
    color:#b91c1c;
}

.admin-link-input{
    min-width:260px;
    margin-bottom:0;
    font-size:14px;
}

.subscriber-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.subscriber-actions form{
    margin:0;
}

.subscriber-btn{
    border:none;
    border-radius:8px;
    padding:10px 12px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.subscriber-btn-success{
    background:#ecfdf3;
    color:#166534;
}

.subscriber-btn-warning{
    background:#fff7ed;
    color:#c2410c;
}

.subscriber-btn-danger{
    background:#fef2f2;
    color:#b91c1c;
}

@media (max-width:768px){
    .admin-subscriber-filter{
        grid-template-columns:1fr;
    }

    .admin-link-input{
        min-width:100%;
    }
}.admin-navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    padding:16px 20px;
    background:#ffffff;
    border-radius:14px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.admin-navbar-left h2{
    margin:0;
    color:#123761;
}

.admin-navbar-right{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.btn-danger{
    background:#ef4444;
    color:#fff;
}

.btn-danger:hover{
    background:#dc2626;
}

.admin-blog-card{
    border-radius:16px;
    padding:20px;
}

.admin-blog-table th{
    font-weight:700;
    color:#123761;
}

.admin-blog-table td{
    vertical-align:middle;
}

.admin-blog-thumb{
    width:70px;
    height:50px;
    object-fit:cover;
    border-radius:8px;
}.admin-navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    padding:16px 20px;
    background:#ffffff;
    border-radius:14px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.admin-navbar-left h2{
    margin:0;
    color:#123761;
}

.admin-navbar-right{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.btn-danger{
    background:#ef4444;
    color:#fff;
}

.btn-danger:hover{
    background:#dc2626;
}

.admin-blog-card{
    border-radius:16px;
    padding:20px;
}

.admin-blog-table th{
    font-weight:700;
    color:#123761;
}

.admin-blog-table td{
    vertical-align:middle;
}

.admin-blog-thumb{
    width:70px;
    height:50px;
    object-fit:cover;
    border-radius:8px;
}.admin-navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    padding:16px 20px;
    background:#ffffff;
    border-radius:14px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.admin-navbar-left h2{
    margin:0;
    color:#123761;
}

.admin-navbar-right{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.btn-danger{
    background:#ef4444;
    color:#fff;
}

.btn-danger:hover{
    background:#dc2626;
}

.admin-blog-card{
    border-radius:16px;
    padding:20px;
}

.admin-blog-table th{
    font-weight:700;
    color:#123761;
}

.admin-blog-table td{
    vertical-align:middle;
}

.admin-blog-thumb{
    width:70px;
    height:50px;
    object-fit:cover;
    border-radius:8px;
}.admin-modal-dialog{
    width:min(900px, 95%);
    border-radius:16px;
}

.admin-modal-header{
    background:#f8fafc;
    border-bottom:1px solid #e5e7eb;
}

.admin-modal-body{
    padding:20px;
}
.blog-filter-form{
    display:grid;
    grid-template-columns:2fr 1fr 1fr auto auto;
    gap:12px;
    margin-bottom:24px;
    align-items:end;
}

.blog-filter-input,
.blog-filter-select{
    width:100%;
    border:1px solid #d8e0ea;
    border-radius:12px;
    padding:14px 16px;
    font-size:16px;
    outline:none;
    background:#fff;
}

.post-tags{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:12px;
}

@media (max-width:768px){
    .blog-filter-form{
        grid-template-columns:1fr;
    }
}.blog-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:32px;
    flex-wrap:wrap;
}

.blog-pagination-pages{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:center;
}

.blog-page-number{
    min-width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #d8e0ea;
    border-radius:10px;
    background:#fff;
    color:#123761;
    font-weight:700;
}

.blog-page-number.active{
    background:#f26a21;
    color:#fff;
    border-color:#f26a21;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    background: #fff;
}

.pagination a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination span {
    opacity: 0.5;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s ease;
}

.edit-btn {
    background: #f97316;
    color: #fff;
}

.delete-btn {
    background: #ef4444;
    color: #fff;
}

.table-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.inline-form {
    margin: 0;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

.admin-sidebar {
    width: 260px;
    background: #111827;
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 30px 20px;
}

.admin-sidebar-logo {
    margin-bottom: 40px;
}

.admin-sidebar-logo h2 {
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    transition: 0.2s ease;
    font-size: 15px;
}

.admin-sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-sidebar-link.active {
    background: #2563eb;
    color: #fff;
}

.admin-sidebar-link.logout {
    margin-top: 20px;
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
}

.admin-main {
    flex: 1;
    padding: 30px;
    overflow-x: auto;
}
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

.admin-sidebar {
    width: 260px;
    background: #111827;
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 28px 20px;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-logo {
    margin-bottom: 35px;
}

.admin-sidebar-logo h2 {
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    transition: 0.2s ease;
    font-size: 15px;
}

.admin-sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-sidebar-link.active {
    background: #2563eb;
    color: #fff;
}

.admin-sidebar-link.logout {
    margin-top: 20px;
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    overflow-x: auto;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 30px;
}

.admin-page-header p {
    margin: 6px 0 0;
    color: #64748b;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s ease;
}

.edit-btn {
    background: #f97316;
    color: #fff;
}

.delete-btn {
    background: #ef4444;
    color: #fff;
}

.success-btn {
    background: #16a34a;
    color: #fff;
}

.warning-btn {
    background: #f59e0b;
    color: #fff;
}

.table-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.inline-form {
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    background: #fff;
}

.pagination a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination span {
    opacity: 0.5;
}

.pagination-info {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 900px) {
    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}