* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo:hover {
    color: #ddd;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

nav a:hover {
    color: #ddd;
    text-decoration: underline;
}

.header-right {
    display: flex;
    gap: 10px;
}

.login-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.login-btn:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Deskripsi */
.description {
    background-color: white;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
}

.description h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 24px;
}

.description p {
    line-height: 1.6;
    color: #555;
    font-size: 16px;
}

/* Menu Services */
.services {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 18px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.service-card a {
    display: inline-block;
    background-color: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.service-card a:hover {
    background-color: #764ba2;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required::after {
    content: " *";
    color: red;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #764ba2;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Panel */
.admin-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    color: #333;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.sidebar {
    float: left;
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 20px;
}

.sidebar h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.sidebar a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #667eea;
    color: white;
}

.content {
    margin-left: 270px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Table */
.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.controls input,
.controls select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #764ba2;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table thead {
    background-color: #f8f9fa;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    font-weight: bold;
    color: #333;
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

.action-btns {
    display: flex;
    gap: 5px;
}

.action-btns a,
.action-btns button {
    padding: 5px 10px;
    font-size: 12px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .header-left {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .content {
        margin-left: 0;
    }

    .admin-header {
        flex-direction: column;
        gap: 10px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.pdf-viewer {
    max-width: 100%;
    max-height: 600px;
    border: 1px solid #ddd;
    margin: 20px 0;
}

/* Refined, responsive visual system */
:root {
    color-scheme: light;
    --color-ink: #172b3a;
    --color-muted: #647584;
    --color-brand: #087f72;
    --color-brand-dark: #06665d;
    --color-brand-soft: #e7f5f2;
    --color-surface: #fff;
    --color-page: #f3f7f8;
    --color-border: #dce6e8;
    --shadow-card: 0 12px 32px rgba(27, 55, 67, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--color-page);
    color: var(--color-ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

header {
    padding: 14px 0;
    background: rgba(15, 43, 55, .97);
    box-shadow: 0 4px 18px rgba(12, 35, 44, .12);
}

.header-container {
    max-width: 1240px;
}

.header-left {
    gap: 38px;
}

.logo {
    font-size: 22px;
    font-weight: 750;
    letter-spacing: .04em;
}

nav a {
    color: rgba(255, 255, 255, .82);
}

nav a:hover,
.logo:hover {
    color: #a7e4d7;
    text-decoration: none;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 94px 24px 100px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(ellipse at 82% 10%, rgba(120, 213, 184, .24), transparent 34%),
        linear-gradient(130deg, #123746 0%, #087f72 100%);
}

.hero::after {
    position: absolute;
    right: -100px;
    bottom: -240px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow,
.section-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #a7e4d7;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .83);
    font-size: 1.08rem;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 13px 24px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(5, 37, 45, .2);
    color: var(--color-brand-dark);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(5, 37, 45, .25);
}

.services {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 24px 28px;
    text-align: center;
}

.section-eyebrow {
    margin-bottom: 4px;
    color: var(--color-brand);
}

.services h2 {
    margin-bottom: 32px;
    color: var(--color-ink);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -.025em;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    text-align: center;
}

.service-card {
    padding: 30px 24px;
    border: 1px solid rgba(220, 230, 232, .8);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: 0 4px 14px rgba(27, 55, 67, .04);
    cursor: default;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #b7ddd5;
    box-shadow: var(--shadow-card);
}

.service-card > div:first-child {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px !important;
    place-items: center;
    border-radius: 14px;
    background: var(--color-brand-soft);
    color: var(--color-brand) !important;
    font-size: 1.4rem !important;
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--color-ink);
    font-size: 1.05rem;
}

.service-card p {
    min-height: 45px;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: .9rem;
}

.service-card a,
.btn-primary,
.btn-submit {
    border: 0;
    border-radius: 6px;
    background: var(--color-brand);
    color: #fff;
    font-weight: 650;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.service-card a {
    padding: 10px 17px;
    font-size: .88rem;
}

.service-card a:hover,
.btn-primary:hover,
.btn-submit:hover {
    transform: translateY(-1px);
    background: var(--color-brand-dark);
    box-shadow: 0 5px 12px rgba(8, 127, 114, .2);
}

.form-container,
.description,
.sidebar,
.content,
.modal-content {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.form-container {
    max-width: 620px;
    margin: 48px auto;
    padding: 36px;
}

.form-container h2,
.sidebar h3 {
    color: var(--color-brand-dark);
}

.form-container h2 {
    margin-bottom: 26px;
    font-size: 1.55rem;
}

.form-group label {
    color: #344a58;
    font-size: .92rem;
    font-weight: 650;
}

.form-group input,
.form-group textarea,
.form-group select,
.controls input,
.controls select {
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fbfdfd;
    color: var(--color-ink);
    font: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.controls input:focus,
.controls select:focus {
    border-color: var(--color-brand);
    outline: 3px solid rgba(8, 127, 114, .12);
    box-shadow: none;
}

.form-group textarea {
    min-height: 120px;
}

.btn-submit {
    min-height: 46px;
}

.required::after {
    color: #c44747;
}

.admin-container {
    max-width: 1440px;
    margin: 30px auto;
    padding: 20px 24px;
}

.admin-header h1 {
    color: var(--color-ink);
    font-size: 1.8rem;
}

.sidebar {
    padding: 22px 16px;
}

.sidebar a {
    margin-bottom: 4px;
    border-radius: 6px;
    color: #425765;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--color-brand);
    color: #fff;
}

.content {
    min-width: 0;
    padding: 26px;
}

.btn {
    border-radius: 6px;
}

.btn-success {
    background: #26845c;
}

.btn-warning {
    background: #bd781c;
}

.btn-danger,
.btn-logout {
    background: #b94949;
}

.btn-success:hover {
    background: #1e6d4b;
}

.btn-warning:hover {
    background: #9c6216;
}

.btn-danger:hover,
.btn-logout:hover {
    background: #983a3a;
}

table {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

table thead {
    background: #edf4f4;
}

table th,
table td {
    padding: 13px 14px;
    border-bottom-color: #e8eeee;
}

table th {
    color: #314957;
    font-size: .84rem;
    letter-spacing: .02em;
}

table tbody tr:hover {
    background: #f5faf9;
}

footer {
    margin-top: 60px;
    padding: 24px;
    background: #102f3b;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
}

:focus-visible {
    outline: 3px solid rgba(8, 127, 114, .45);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .header-container,
    .header-left {
        flex-direction: row;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .header-left {
        width: auto;
        gap: 20px;
    }

    .hero {
        padding: 72px 22px 78px;
    }

    .hero p {
        font-size: 1rem;
    }

    .services {
        padding: 54px 18px 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .form-container {
        margin: 28px 16px;
        padding: 26px 22px;
    }

    .admin-container {
        padding: 12px;
    }

    .content {
        overflow-x: auto;
        padding: 18px;
    }

    table {
        min-width: 640px;
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 14px;
    }

    .logo {
        font-size: 19px;
    }

    nav a {
        font-size: .9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card p {
        min-height: 0;
    }

    .admin-header {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
