@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #0668f9;
    --cyan: #00cde8;
    --dark: #06162b;
    --muted: #65758c;
    --border: #e4eaf2
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font: 15px 'DM Sans', sans-serif;
    color: var(--dark);
    background: #f6f8fc
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea,
select {
    font: inherit
}

button,
.btn {
    cursor: pointer;
    background: var(--blue);
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 11px 17px;
    display: inline-block
}

.btn.ghost {
    background: #e9f1ff;
    color: #075be0
}

.btn.danger {
    background: #df3551
}

input,
select,
textarea {
    border: 1px solid #d7dfeb;
    padding: 11px;
    border-radius: 7px;
    width: 100%;
    background: white
}

label {
    display: block;
    font-weight: 700;
    margin: 15px 0 6px
}

textarea {
    min-height: 140px
}

.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px
}

.nav img {
    width: 190px;
    max-width: 40vw
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap
}

.navlinks a:hover {
    color: var(--blue)
}

.hero {
    background: linear-gradient(125deg, #06162b, #083b89);
    color: white;
    padding: 100px 0
}

.hero h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.1;
    max-width: 850px;
    margin: 15px 0
}

.hero p {
    color: #d7e9ff;
    max-width: 650px;
    font-size: 18px
}

.eyebrow {
    color: var(--cyan);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px
}

.section {
    padding: 70px 0
}

.section h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin: 0 0 16px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.tile,
.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 5px 24px #102f5708
}

.tile i {
    color: var(--blue);
    font-size: 30px
}

.tile h3 {
    font-size: 20px
}

.muted {
    color: var(--muted)
}

.footer {
    background: #06162b;
    color: white;
    padding: 50px 0
}

.footer a {
    color: #d6e8ff
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px
}

.footer img {
    max-width: 200px;
    filter: brightness(0) invert(1)
}

.post-hero {
    background: #eaf2ff;
    padding: 55px 0
}

.post-content {
    max-width: 850px;
    line-height: 1.85;
    font-size: 17px
}

.post-content img {
    max-width: 100%;
    height: auto
}

.admin-layout {
    display: flex;
    min-height: 100vh
}

.sidebar {
    background: #111827;
    color: #e5e7eb;
    width: 240px;
    flex-shrink: 0;
    padding: 18px 12px
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 800;
    padding: 16px
}

.sidebar .brand img {
    width: 35px
}

.sidebar a.menu {
    display: block;
    padding: 12px 14px;
    border-radius: 7px;
    margin: 3px 0
}

.sidebar a.menu:hover,
.sidebar a.active {
    background: #2455e9;
    color: white
}

.main {
    min-width: 0;
    flex: 1;
    padding: 30px
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px
}

.topbar h1 {
    margin: 0;
    font-size: 29px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px
}

.stat {
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px
}

.stat strong {
    font-size: 32px;
    display: block;
    color: var(--blue)
}

.table-scroll {
    overflow: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 660px
}

th,
td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle
}

th {
    background: #f2f6fd
}

td .btn {
    padding: 7px 10px;
    font-size: 13px
}

.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 18px 0
}

.toolbar input {
    max-width: 290px
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    gap: 24px
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 15px
}

.media-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: 10px
}

.media-item img {
    width: 100%;
    height: 125px;
    object-fit: cover
}

.media-item input {
    padding: 6px;
    font-size: 12px
}

.notice {
    background: #e4f9ee;
    color: #11643e;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 18px
}

.code-preview {
    white-space: pre-wrap;
    max-height: 300px;
    overflow: auto;
    background: #071a31;
    color: #aaf4fa;
    padding: 20px;
    border-radius: 9px;
    font-size: 12px
}

.mobile-toggle {
    display: none
}

.admin-footer {
    color: #8190a7;
    margin-top: 35px;
    font-size: 13px
}

@media(max-width:900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .form-grid,
    .grid {
        grid-template-columns: 1fr 1fr
    }

    .sidebar {
        width: 205px
    }

    .main {
        padding: 18px
    }
}

@media(max-width:650px) {
    .sidebar {
        display: none;
        position: fixed;
        z-index: 50;
        inset: 0 auto 0 0;
        overflow: auto
    }

    .sidebar.open {
        display: block
    }

    .mobile-toggle {
        display: inline-block
    }

    .main {
        padding: 15px
    }

    .stats,
    .grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px
    }

    .navlinks {
        gap: 12px
    }

    .hero {
        padding: 60px 0
    }

    .section {
        padding: 40px 0
    }

    .topbar h1 {
        font-size: 23px
    }
}

/* DigiPro admin refresh — frontend layout remains unchanged */
.admin-layout {
    background: #f4f7fc
}

.sidebar {
    background: #0d172b;
    width: 254px;
    padding: 22px 12px;
    box-shadow: 4px 0 25px #0d172b08
}

.sidebar .brand {
    padding: 14px 13px 28px;
    font-size: 17px
}

.sidebar .brand img {
    width: 38px
}

.sidebar a.menu {
    border-radius: 11px;
    margin: 4px 0;
    padding: 13px 15px;
    font-weight: 600;
    color: #c7d4e8;
    transition: background .18s, color .18s
}

.sidebar a.menu:hover {
    background: #1b2c4c;
    color: #fff
}

.sidebar a.active {
    background: linear-gradient(110deg, #1268ff, #3254e9);
    color: #fff;
    box-shadow: 0 6px 17px #1157ee35
}

.main {
    padding: 30px 34px
}

.topbar {
    margin-bottom: 28px
}

.topbar h1 {
    font-size: 29px;
    letter-spacing: -.7px
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px
}

.view-site {
    color: #52657f;
    font-weight: 600
}

.admin-account-link {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e0e8f3;
    border-radius: 14px;
    background: white;
    padding: 7px 11px;
    font-weight: 700;
    box-shadow: 0 4px 15px #0c285808
}

.admin-account-link .fa-pen-to-square {
    font-size: 12px;
    color: #3b6cf4
}

.admin-avatar {
    width: 33px;
    height: 33px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #e8f1ff;
    color: #1268ff
}

.main .panel,
.main .stat,
.main .table-scroll {
    border-radius: 16px;
    box-shadow: 0 8px 30px #16366b09
}

.main .stat {
    padding: 25px
}

.main .stat strong {
    letter-spacing: -1px
}

.main button:hover,
.main .btn:hover {
    filter: brightness(.96)
}

.password-field {
    position: relative
}

.password-field input {
    padding-right: 55px
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #5b6e87;
    border: 0;
    padding: 9px 12px;
    border-radius: 8px
}

.password-toggle:hover {
    background: #eef3fc
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 15% 10%, #d9eaff 0, transparent 42%), linear-gradient(135deg, #f7faff, #eaf1fd);
    padding: 22px
}

.login-card {
    width: 100%;
    max-width: 455px;
    background: #fff;
    border: 1px solid #e3ebf6;
    border-radius: 22px;
    padding: 42px;
    box-shadow: 0 25px 75px #153d791b
}

.login-logo img {
    max-width: 195px;
    max-height: 85px;
    object-fit: contain
}

.login-eyebrow {
    color: #1268ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-top: 25px
}

.login-card h1 {
    font-size: 29px;
    letter-spacing: -.8px;
    margin: 9px 0
}

.login-card .muted {
    line-height: 1.6
}

.login-card label {
    margin-top: 22px
}

.login-card input {
    height: 48px;
    border-radius: 10px
}

.login-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 27px;
    padding: 15px;
    border-radius: 11px;
    font-weight: 700
}

.login-error {
    padding: 12px;
    border-radius: 9px;
    background: #fff0f1;
    color: #ba2637;
    margin-top: 15px
}

.dp-preview-modal[hidden] {
    display: none !important
}

@media(max-width:900px) {
    .sidebar {
        width: 215px
    }

    .main {
        padding: 22px
    }

    .topbar-actions {
        gap: 8px
    }

    .topbar h1 {
        font-size: 19px;
        margin-top: 20px;
    }
}

@media(max-width:650px) {
    .sidebar {
        width: 254px
    }

    .main {
        padding: 16px
    }

    .topbar {
        align-items: flex-start
    }

    .topbar-actions {
        flex-wrap: wrap;
        justify-content: flex-end
    }

    .admin-account-link span:not(.admin-avatar) {
        display: none
    }

    .view-site {
        font-size: 12px
    }

    .login-card {
        padding: 28px
    }
}
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&display=swap");html,body,button,input,textarea,select{font-family:"DM Sans",sans-serif!important}
