
.spk-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 24px auto;
    padding: 20px;
    box-sizing: border-box;
}
.spk-header {
    margin-bottom: 20px;
}
.spk-header h2 {
    margin-bottom: 6px;
}
.spk-form,
.spk-admin-card,
.spk-status-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}
.spk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}
.spk-field {
    display: flex;
    flex-direction: column;
}
.spk-field-full {
    grid-column: 1 / -1;
}
.spk-field label {
    font-weight: 600;
    margin-bottom: 6px;
}
.spk-field input,
.spk-field select,
.spk-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
.spk-field textarea {
    min-height: 100px;
}
.spk-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 18px 0;
}
.spk-btn {
    display: inline-block;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.spk-btn-primary {
    background: #0f62d6;
    color: #fff;
}
.spk-alert {
    max-width: 1100px;
    margin: 16px auto;
    padding: 12px 16px;
    border-radius: 8px;
}
.spk-alert-success {
    background: #dcfce7;
    color: #166534;
}
.spk-alert-error {
    background: #fee2e2;
    color: #991b1b;
}
.spk-table-scroll {
    width: 100%;
    overflow-x: auto;
}
.spk-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.spk-table th,
.spk-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.spk-table th {
    background: #f8fafc;
}
.spk-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 13px;
}
.spk-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    margin: 20px 0;
}
.spk-admin-card {
    margin: 16px 0 24px;
    max-width: 1000px;
}
@media (max-width: 767px) {
    .spk-wrap {
        padding: 12px;
        margin: 12px auto;
    }
    .spk-grid,
    .spk-status-grid {
        grid-template-columns: 1fr;
    }
    .spk-field-full {
        grid-column: auto;
    }
    .spk-btn {
        width: 100%;
    }
    .spk-table,
    .spk-table thead,
    .spk-table tbody,
    .spk-table th,
    .spk-table td,
    .spk-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .spk-table thead {
        display: none;
    }
    .spk-table tr {
        margin-bottom: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }
    .spk-table td {
        border: 0;
        border-bottom: 1px solid #eef2f7;
        padding-left: 44%;
        position: relative;
        min-height: 44px;
    }
    .spk-table td:last-child {
        border-bottom: 0;
    }
    .spk-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 12px;
        width: 38%;
        font-weight: 700;
    }
}


/* ===== HALAMAN UTAMA MODEN ===== */
.spk-home {
    --spk-primary: #0f62d6;
    --spk-primary-dark: #0b4fae;
    --spk-accent: #14b8a6;
    --spk-text: #172033;
    --spk-muted: #64748b;
    --spk-border: #dbe4f0;
    --spk-surface: #ffffff;
    --spk-soft: #f5f8fc;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    box-sizing: border-box;
}

.spk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: stretch;
    padding: 44px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(20,184,166,.18), transparent 28%),
        linear-gradient(135deg, #0b2858 0%, #0f62d6 58%, #1778e8 100%);
    box-shadow: 0 22px 48px rgba(15, 98, 214, .20);
    overflow: hidden;
}

.spk-hero-content {
    color: #fff;
    align-self: center;
}

.spk-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.spk-hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.spk-hero-content > p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
}

.spk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.spk-btn-large {
    min-width: 170px;
    padding: 13px 22px;
    text-align: center;
    text-decoration: none !important;
}

.spk-btn-outline {
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.10);
    color: #fff;
    backdrop-filter: blur(8px);
}

.spk-btn-outline:hover {
    background: #fff;
    color: var(--spk-primary);
}

.spk-btn-primary:hover {
    background: var(--spk-primary-dark);
    color: #fff;
}

.spk-hero-panel {
    align-self: stretch;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    color: #fff;
    backdrop-filter: blur(10px);
}

.spk-hero-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    font-size: 30px;
}

.spk-hero-panel h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
}

.spk-hero-panel p {
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.65;
}

.spk-section-heading {
    max-width: 720px;
    margin: 54px auto 24px;
    text-align: center;
}

.spk-section-heading span {
    color: var(--spk-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.spk-section-heading h2 {
    margin: 7px 0 8px;
    color: var(--spk-text);
    font-size: clamp(27px, 4vw, 38px);
}

.spk-section-heading p {
    margin: 0;
    color: var(--spk-muted);
}

.spk-status-grid-home {
    gap: 20px;
}

.spk-status-card {
    position: relative;
    min-height: 180px;
    padding: 26px;
    border: 1px solid var(--spk-border);
    background: var(--spk-surface);
    box-shadow: 0 12px 30px rgba(15, 35, 68, .07);
}

.spk-status-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    border-radius: 0 0 12px 12px;
}

.spk-status-available::after {
    background: #16a34a;
}

.spk-status-busy::after {
    background: #dc2626;
}

.spk-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.spk-card-label {
    color: var(--spk-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.spk-status-card h3 {
    margin: 4px 0 22px;
    color: var(--spk-text);
    font-size: 30px;
}

.spk-status-dot {
    width: 14px;
    height: 14px;
    margin-top: 6px;
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(22,163,74,.10);
}

.spk-status-available .spk-status-dot {
    background: #16a34a;
}

.spk-status-busy .spk-status-dot {
    background: #dc2626;
    box-shadow: 0 0 0 7px rgba(220,38,38,.10);
}

.spk-status-text {
    margin: 0 0 4px;
    color: var(--spk-muted);
    font-size: 14px;
}

.spk-status-value {
    color: var(--spk-text);
    font-size: 19px;
}

.spk-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.spk-feature-card {
    padding: 24px;
    border: 1px solid var(--spk-border);
    border-radius: 18px;
    background: var(--spk-soft);
}

.spk-feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #e7f0ff;
    font-size: 24px;
}

.spk-feature-card h3 {
    margin: 0 0 8px;
    color: var(--spk-text);
    font-size: 20px;
}

.spk-feature-card p {
    margin: 0;
    color: var(--spk-muted);
    line-height: 1.65;
}

.spk-info-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
}

.spk-info-strip div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.spk-info-strip span {
    color: rgba(255,255,255,.76);
}

.spk-info-strip a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Borang dan jadual ditambah kemasan */
.spk-form {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 35, 68, .08);
}

.spk-form .spk-btn-primary {
    padding-inline: 24px;
}

.spk-field input:focus,
.spk-field select:focus,
.spk-field textarea:focus {
    outline: none;
    border-color: #0f62d6;
    box-shadow: 0 0 0 3px rgba(15,98,214,.12);
}

.spk-table {
    border-radius: 14px;
    overflow: hidden;
}

.spk-table th {
    background: #0f172a;
    color: #fff;
}

@media (max-width: 900px) {
    .spk-hero {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .spk-hero-panel {
        max-width: none;
    }

    .spk-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .spk-home {
        padding: 16px 12px 34px;
    }

    .spk-hero {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .spk-hero h1 {
        font-size: 36px;
    }

    .spk-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .spk-btn-large {
        width: 100%;
    }

    .spk-section-heading {
        margin-top: 38px;
        text-align: left;
    }

    .spk-feature-grid {
        grid-template-columns: 1fr;
    }

    .spk-info-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}
