/* ==================================================
   DASAR & LAYOUT ADMIN
   ================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

a {
    text-decoration: none;
}

.admin-layout {
    min-height: 100vh;
    display: flex;
}

.admin-main {
    width: calc(100% - 230px);
    min-height: 100vh;
    margin-left: 230px;
}


/* ==================================================
   SIDEBAR ADMIN
   ================================================== */

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 230px;
    height: 100vh;
    background: #2864e8;
    color: white;
    padding: 25px 16px;
    z-index: 1000;
}

.school-brand {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.school-logo-wrapper {
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    overflow: hidden;
}

.school-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
}

.school-brand h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.school-brand small {
    font-size: 12px;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
    box-shadow: none !important;
}

.admin-menu li {
    margin: 4px 0 !important;
    border: none !important;
}

.admin-menu-title {
    margin: 22px 8px 10px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.85;
    border: none !important;
}

.admin-menu a,
.admin-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 44px;
    padding: 12px 14px !important;
    color: white !important;
    background: transparent;
    border: none !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: 0.2s;
}

.admin-menu a i {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.admin-menu a:hover,
.admin-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    text-decoration: none !important;
}

.admin-menu a.active {
    background: rgba(255, 255, 255, 0.23);
    color: white !important;
}

.admin-menu li a::before,
.admin-menu li a::after,
.admin-logout a::before,
.admin-logout a::after {
    display: none !important;
    content: none !important;
}

.admin-logout {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 20px;
    padding-top: 14px;
    border: none !important;
    box-shadow: none !important;
}

.admin-logout a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 12px;
    color: white !important;
    border: none !important;
    border-radius: 9px;
    box-shadow: none !important;
    font-size: 14px;
    text-decoration: none !important;
}

.admin-logout a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
}

.admin-logout i {
    width: 20px;
    text-align: center;
}

.admin-menu span,
.admin-logout span {
    display: inline;
}


/* ==================================================
   TOPBAR ADMIN
   ================================================== */

.admin-topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.admin-topbar h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
}

.admin-profile i {
    color: #2864e8;
    font-size: 25px;
}


/* ==================================================
   DASHBOARD ADMIN
   ================================================== */

.admin-content {
    padding: 28px;
}

.page-heading {
    margin-bottom: 25px;
}

.page-heading h2 {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-heading p {
    color: #6b7280;
    font-size: 14px;
}

.dashboard-link {
    display: block;
    color: inherit;
}

.dashboard-link:hover {
    color: inherit;
}

.dashboard-card {
    background: white;
    border: none;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.dashboard-card .card-body {
    padding: 20px;
}

.dashboard-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.icon-blue {
    background: #e0ebff;
    color: #2864e8;
}

.icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.icon-orange {
    background: #fff0d8;
    color: #e59a00;
}

.dashboard-panel {
    background: white;
    border-radius: 13px;
    padding: 22px;
    min-height: 220px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.dashboard-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
}

.dashboard-panel-title i {
    color: #2864e8;
}

.dashboard-article-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-article-item:last-child {
    border-bottom: none;
}

.dashboard-article-image {
    width: 125px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

.dashboard-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-article-info {
    flex: 1;
    min-width: 0;
}

.dashboard-article-info h5 {
    margin: 2px 0 5px;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
}

.dashboard-article-date {
    margin: 0 0 7px;
    font-size: 14px;
    color: #64748b;
}

.dashboard-article-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.empty-content {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    padding: 55px 20px;
}

.empty-content i {
    font-size: 45px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.empty-content p {
    margin: 0;
    font-size: 15px;
}


/* ==================================================
   TOMBOL ADMIN
   ================================================== */

.btn-admin-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: #2864e8;
    color: white !important;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.btn-admin-primary:hover {
    background: #1852d1;
    color: white !important;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn-edit,
.btn-delete {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: white;
    padding: 0;
    cursor: pointer;
}

.btn-edit {
    color: #2864e8 !important;
    border: 1px solid #2864e8;
}

.btn-delete {
    color: #dc2626 !important;
    border: 1px solid #dc2626;
}

.btn-edit:hover {
    background: #e0ebff;
}

.btn-delete:hover {
    background: #fee2e2;
}

.btn-tambah {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2864e8;
    color: #ffffff;
    padding: 11px 17px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-tambah:hover {
    background: #1852d1;
    color: #ffffff;
}

.btn-kembali {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f1f3f5;
    color: #333;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.btn-kembali:hover {
    background: #e2e6ea;
    color: #333;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    background: #e5e7eb;
    color: #333;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-reset:hover {
    background: #d1d5db;
}


/* ==================================================
   FORM ADMIN
   ================================================== */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group input[type="file"]:focus {
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.form-group input[type="file"] {
    padding: 10px;
}

.form-help {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #777;
}

.form-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success i {
    margin-right: 7px;
}


/* ==================================================
   ARTIKEL ADMIN
   ================================================== */

.article-page {
    padding: 28px;
}

.article-card {
    background: white;
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.article-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.article-header h5 {
    margin: 0;
    font-size: 18px;
}

.article-header h5 i {
    color: #2864e8;
    margin-right: 8px;
}

.article-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: #222;
}

.article-title i {
    color: #2864e8;
    font-size: 22px;
}

.article-info {
    flex: 1;
}

.article-info h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.article-info h4 {
    font-size: 17px;
    margin: 0 0 8px;
}

.article-info p {
    font-size: 13px;
    color: #666666;
    margin: 0 0 8px;
    line-height: 1.5;
}

.article-info small {
    font-size: 11px;
    color: #999999;
}

.article-info small i {
    margin-right: 4px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #ffffff;
}

.article-item:last-child {
    border-bottom: none;
}

.article-image {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.article-no-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 30px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.article-actions form {
    margin: 0;
}

.article-actions .btn-edit,
.article-actions .btn-delete {
    width: 35px;
    height: 35px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ffffff;
    cursor: pointer;
}

.article-actions .btn-edit {
    border: 1px solid #2864e8;
    color: #2864e8;
}

.article-actions .btn-delete {
    border: 1px solid #dc3545;
    color: #dc3545;
}

.article-actions .btn-edit:hover {
    background: #2864e8;
    color: #ffffff;
}

.article-actions .btn-delete:hover {
    background: #dc3545;
    color: #ffffff;
}

.empty-article {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-article-icon {
    color: #9aa5b5;
    font-size: 45px;
    margin-bottom: 12px;
}

.empty-article h3 {
    color: #8d9bb0;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-article p {
    color: #9aa5b5;
    font-size: 16px;
}

.article-form {
    padding: 25px;
}

.article-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.article-form-actions .btn-tambah,
.article-form-actions .btn-kembali {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.article-form-actions .btn-tambah {
    border: none;
    background: #2563eb;
    color: #fff;
}

.article-form-actions .btn-tambah:hover {
    background: #1d4ed8;
}

.article-form-actions .btn-kembali,
.gallery-page .page-header .btn-kembali {
    border: 1px solid #ddd;
    background: #f1f3f5;
    color: #333;
}

.article-form-actions .btn-kembali:hover,
.gallery-page .page-header .btn-kembali:hover {
    background: #e2e6ea;
    color: #333;
}


/* ==================================================
   GALERI ADMIN
   ================================================== */

.gallery-page {
    min-height: calc(100vh - 55px);
    background: #eaf0fc;
    padding: 25px 30px 30px;
}

.gallery-page .page-heading {
    display: block !important;
    margin-bottom: 20px;
}

.gallery-page .page-heading h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.gallery-page .page-heading p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #777;
}

.gallery-page .page-heading .small {
    font-size: 11px;
    padding-top: 5px;
}

.gallery-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.gallery-page .page-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

.gallery-page .page-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.gallery-card {
    background: white;
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-form-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-form {
    width: 100%;
}

.gallery-field {
    margin-bottom: 18px;
}

.gallery-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.gallery-field .form-control,
.gallery-field .form-select {
    min-height: 40px;
    border: 1px solid #d9dee8;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    box-shadow: none;
}

.gallery-field .form-control::placeholder {
    color: #aaa;
}

.gallery-field .form-control:focus,
.gallery-field .form-select:focus {
    border-color: #2864e8;
    box-shadow: 0 0 0 0.15rem rgba(40, 100, 232, 0.10);
}

.gallery-field textarea.form-control {
    min-height: 75px;
    resize: vertical;
    padding-top: 10px;
}

.gallery-page .form-control,
.gallery-page .form-select {
    min-height: 45px;
    border-radius: 8px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 13px;
}

.gallery-page .form-control:focus,
.gallery-page .form-select:focus {
    border-color: #2864e8;
    box-shadow: 0 0 0 0.2rem rgba(40, 100, 232, 0.12);
}

.gallery-page textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.gallery-page .form-group {
    margin-bottom: 22px;
}

.gallery-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.gallery-page .form-group input[type="text"],
.gallery-page .form-group textarea,
.gallery-page .form-group input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
}

.gallery-page .form-group input[type="text"]:focus,
.gallery-page .form-group textarea:focus {
    border-color: #2563eb;
}

.gallery-page .form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.gallery-page .form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.gallery-page .form-help {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #777;
}

.gallery-page .article-form {
    padding: 25px;
}

.gallery-page .content-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.gallery-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}

.gallery-card-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.gallery-card-title i {
    color: #2864e8;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.admin-gallery-item {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
    position: static !important;
}

.admin-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.admin-gallery-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: block;
    object-fit: cover;
    position: static !important;
}

.admin-gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: static !important;
}

.admin-gallery-info {
    padding: 16px;
    background: #ffffff;
    color: #222222;
    position: static !important;
}

.admin-gallery-info h4 {
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.admin-gallery-info h6 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #222222;
}

.admin-gallery-info p {
    margin: 5px 0 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
}

.gallery-category {
    display: inline-block;
    padding: 5px 10px;
    background: #eaf1ff;
    color: #2864e8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.admin-gallery-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 15px;
    padding: 0 16px 16px !important;
    width: 100% !important;
    background: #ffffff;
    position: static !important;
}

.admin-gallery-actions form {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.admin-gallery-actions .btn-edit,
.admin-gallery-actions .btn-delete {
    width: auto !important;
    min-width: 75px !important;
    height: 36px !important;
    min-height: 36px;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    float: none !important;
    position: static !important;
    cursor: pointer;
    text-decoration: none;
}

.admin-gallery-actions .btn-edit {
    color: #2864e8 !important;
    border: 1px solid #2864e8 !important;
    background: #ffffff !important;
}

.admin-gallery-actions .btn-delete {
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    background: #ffffff !important;
}

.admin-gallery-actions .btn-edit:hover {
    background: #2864e8;
    color: #ffffff !important;
}

.admin-gallery-actions .btn-delete:hover {
    background: #dc2626;
    color: #ffffff !important;
}

.admin-gallery-actions .btn-edit i,
.admin-gallery-actions .btn-delete i {
    position: static !important;
    margin: 0 !important;
}

.gallery-upload-box {
    position: relative;
    min-height: 90px;
    border: 1.5px dashed #b8c4d8;
    border-radius: 7px;
    background: #fafcff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: 0.2s ease;
}

.gallery-upload-box:hover {
    border-color: #2864e8;
    background: #f5f8ff;
}

.gallery-upload-box > i {
    color: #2864e8;
    font-size: 23px;
    margin-bottom: 5px;
}

.gallery-upload-box strong {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.gallery-upload-box small {
    margin-top: 3px;
    color: #999;
    font-size: 9px;
}

.gallery-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gallery-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.gallery-form-actions .btn {
    min-width: 95px;
    height: 36px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gallery-form-actions .btn i {
    font-size: 11px;
}

.gallery-page .form-error {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 10px;
}


/* ==================================================
   KONTAK / PESAN MASUK
   ================================================== */

.contact-page {
    padding: 28px;
}

.contact-card {
    background: white;
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.message-item {
    padding: 22px 25px;
    margin-top: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    transition: 0.2s ease;
}

.message-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.message-item:last-child {
    border-bottom: none;
}

.message-content {
    flex: 1;
}

.message-content h5 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.message-content p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.message-content p strong {
    color: #1f2937;
    font-size: 15px;
}

.message-content small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
}

.message-action {
    flex-shrink: 0;
}

.message-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.message-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    border-radius: 20px;
    background: #e8f0ff;
    color: #2161e8;
    font-size: 14px;
    font-weight: 600;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.admin-table th {
    background: #f5f7fb;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 15px 16px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table td strong {
    color: #222;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}


/* ==================================================
   LOGIN ADMIN
   ================================================== */

.login-page {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1b526d;
}

.login-background {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(16, 73, 98, 0.30),
            rgba(16, 73, 98, 0.30)
        ),
        url("/images/lapangan smkn 4.JPG");
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.04);
    z-index: 0;
}

.login-logo-top {
    position: absolute;
    top: 20px;
    left: 40px;
    width: 38px;
    height: 38px;
    object-fit: contain;
    z-index: 3;
}

.login-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 15%;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    gap: 70px;
}

.login-welcome {
    color: white;
    margin-left: 2%;
    width: 50%;
    text-align: left;
}

.login-welcome h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
}

.login-welcome p {
    margin: 7px 0 0;
    font-size: 16px;
    font-weight: 400;
}

.login-card {
    width: 100%;
    max-width: 340px;
    padding: 18px 18px 25px;
    border-radius: 18px;
    background: rgba(35, 99, 127, 0.73);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-sizing: border-box;
    color: white;
}

.login-form-group {
    margin-bottom: 13px;
}

.login-form-group label {
    display: block;
    margin-bottom: 5px;
    padding-left: 10px;
    color: white;
    font-size: 9px;
    font-weight: 400;
}

.login-form-group input {
    width: 100%;
    height: 34px;
    padding: 0 13px;
    border: none;
    border-radius: 20px;
    background: rgba(7, 53, 75, 0.88);
    color: white;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 9px;
    outline: none;
}

.login-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.login-form-group input:focus {
    background: rgba(5, 45, 65, 0.95);
}

.login-remember {
    margin: 4px 0 14px;
    padding-left: 8px;
}

.login-remember label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 8px;
    cursor: pointer;
}

.login-remember input {
    width: 9px;
    height: 9px;
    margin: 0;
    accent-color: white;
}

.login-error {
    margin-top: 8px;
    margin-bottom: 9px;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(220, 38, 38, 0.35);
    color: white;
    font-size: 8px;
    text-align: center;
}

.login-button {
    width: 100%;
    height: 35px;
    margin-top: 25px;
    border: none;
    border-radius: 20px;
    background: rgba(7, 51, 72, 0.92);
    color: white;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-button:hover {
    background: rgba(3, 38, 56, 0.98);
}

.login-forgot {
    display: block;
    text-align: center;
    margin-top: 6px;
    color: white;
    font-size: 8px;
    text-decoration: none;
}

.login-forgot:hover {
    color: white;
    text-decoration: underline;
}


/* ==================================================
   FOOTER ADMIN
   ================================================== */

.admin-footer {
    text-align: center;
    padding: 10px 20px;
    color: #9ca3af;
    font-size: 11px;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1000px) {
    .admin-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .login-container {
        justify-content: center;
    }

    .login-welcome {
        display: none;
    }

    .login-card {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {

    /* SIDEBAR */
    .admin-sidebar {
        width: 70px;
        padding: 20px 8px;
    }

    .school-brand h5,
    .school-brand small,
    .admin-menu-title,
    .admin-menu span,
    .admin-logout span {
        display: none;
    }

    .school-logo-wrapper {
        width: 50px;
        height: 50px;
    }

    .school-logo {
        width: 42px;
        height: 42px;
    }

    .admin-menu a,
    .admin-logout a {
        justify-content: center;
    }

    .admin-main {
        width: calc(100% - 70px);
        margin-left: 70px;
    }

    /* DASHBOARD */
    .admin-content {
        padding: 20px 15px;
    }

    /* GALERI */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-page {
        padding: 20px 15px;
    }

    .gallery-page .page-heading {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-form-card {
        padding: 20px;
    }

    .gallery-page .article-form {
        padding: 18px;
    }

    /* PESAN */
    .message-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-action {
        width: 100%;
    }

    .message-action a {
        width: 100%;
    }

    /* LOGIN */
    .login-logo-top {
        top: 18px;
        left: 22px;
        width: 32px;
        height: 32px;
    }

    .login-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 25px 40px;
        gap: 30px;
    }

    .login-welcome {
        width: 100%;
        text-align: center;
    }

    .login-welcome h1 {
        font-size: 32px;
    }

    .login-welcome p {
        font-size: 13px;
    }

    .login-card {
        max-width: 340px;
    }
}

@media (max-width: 700px) {

    /* ARTIKEL */
    .article-box {
        padding: 18px;
    }

    .article-header {
        align-items: flex-start;
        gap: 15px;
    }

    .article-item {
        flex-direction: column;
        align-items: stretch;
    }

    .article-image {
        width: 100%;
        height: 180px;
    }

    .article-actions {
        justify-content: flex-end;
    }

    /* GALERI */
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-gallery-image {
        height: 210px;
    }
}

/* ================================
   ADMIN PROFILE DROPDOWN
   ================================ */

.admin-profile {
    position: relative !important;
}

.admin-profile-button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
}

.admin-profile-button > i:first-child {
    font-size: 30px !important;
    color: #2563eb !important;
}

.admin-profile-button .fa-caret-down {
    font-size: 14px !important;
    color: #333 !important;
}

.admin-dropdown {
    display: none !important;
    position: absolute !important;
    top: 42px !important;
    right: 0 !important;
    width: 185px !important;
    background: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

.admin-dropdown.show {
    display: block !important;
}

.admin-dropdown-title {
    padding: 16px 18px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222 !important;
    border-bottom: 1px solid #ddd !important;
}

.admin-dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 16px !important;
    background: #fff !important;
}

.admin-dropdown a i {
    width: 24px !important;
    font-size: 20px !important;
    color: #2563eb !important;
}

.admin-dropdown a:hover {
    background: #f5f7fb !important;
}