:root {
    --navy: #10394c;
    --navy-dark: #082b3b;
    --teal: #329ba5;
    --background: #f3f7f9;
    --surface: #ffffff;
    --text: #163546;
    --muted: #647d89;
    --border: #dce6eb;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system,
        "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.5;
}

.login-layout {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 44% 56%;
}

.brand-panel {
    background: linear-gradient(
        155deg, var(--navy), var(--navy-dark)
    );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 48px;
}

.brand-name {
    font-size: 48px;
    letter-spacing: 8px;
    font-weight: 700;
    margin: 20px 0 8px;
}

.brand-description {
    color: #b9d9e4;
    max-width: 340px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 16px 48px
        rgba(16, 57, 76, 0.07);
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 8px;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    font: inherit;
    color: var(--text);
    background: white;
}

input:focus {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.primary-button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 15px;
    margin-top: 26px;
    font: inherit;
    font-weight: 600;
    background: var(--navy);
    color: white;
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.security-note {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.preview-note {
    margin-top: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 760px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        padding: 28px 20px;
    }

    .brand-name {
        font-size: 30px;
        margin: 8px 0;
    }

    .brand-panel svg {
        width: 64px;
        height: 64px;
    }

    .login-panel {
        padding: 20px;
    }

    .login-card {
        padding: 26px;
    }
}

/* MAYAK DASHBOARD V1 */

[hidden] {
    display: none !important;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100dvh;
}

.workspace-sidebar {
    background: var(--navy-dark);
    color: white;
    padding: 24px 16px;
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px 36px;
}

.workspace-brand strong {
    display: block;
    font-size: 25px;
    letter-spacing: 3px;
}

.workspace-brand small {
    color: #8db9c8;
    font-size: 10px;
    letter-spacing: 2px;
}

.navigation-caption {
    color: #9ab9c5;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 25px 12px 10px;
}

.workspace-navigation {
    display: grid;
    gap: 4px;
}

.nav-item {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #dcebf0;
    font: inherit;
    font-size: 14px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background: #245367;
    color: white;
}

.sidebar-footer {
    color: #a4c5d0;
    font-size: 11px;
    line-height: 1.8;
    margin: 40px 12px 0;
}

.workspace-main {
    min-width: 0;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 18px 32px;
}

.workspace-header strong {
    display: block;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: var(--muted);
}

.profile {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}

.secondary-button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    color: var(--navy);
    padding: 10px 16px;
    font: inherit;
    cursor: pointer;
}

.workspace-content {
    max-width: 1250px;
    margin: auto;
    padding: 32px;
}

.welcome p {
    color: var(--muted);
}

.welcome h1 {
    font-size: clamp(24px, 3vw, 36px);
}

.task-panel {
    background: var(--navy);
    color: white;
    border-radius: var(--radius);
    padding: 30px;
    margin: 24px 0 32px;
}

.task-panel .eyebrow {
    color: #9ed6df;
}

.task-panel h2 {
    margin: 12px 0;
}

.task-panel p,
.task-panel small {
    color: #c3dce5;
}

.task-panel textarea {
    width: 100%;
    resize: vertical;
    padding: 16px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    color: var(--text);
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.light-button,
.white-button {
    padding: 12px 18px;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    border: 0;
}

.light-button {
    color: white;
    background: #315c70;
}

.white-button {
    color: var(--navy);
    background: white;
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.section-title {
    font-size: 22px;
}

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

.tool-card,
.detail-card {
    text-align: left;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font: inherit;
}

.tool-card {
    cursor: pointer;
    min-height: 120px;
}

.tool-card:hover {
    border-color: var(--teal);
}

.tool-card strong,
.tool-card span {
    display: block;
}

.tool-card span {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 1050px) {
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .workspace-layout {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        padding: 16px;
    }

    .workspace-brand {
        margin-bottom: 12px;
    }

    .workspace-navigation {
        display: flex;
        overflow-x: auto;
    }

    .nav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .sidebar-footer,
    .navigation-caption {
        display: none;
    }

    .workspace-header,
    .workspace-content {
        padding: 16px;
    }

    .profile span {
        display: none;
    }

    .task-panel {
        padding: 20px;
    }

    .tools-grid {
        gap: 10px;
    }

    .tool-card {
        padding: 16px;
    }
}

