.lpm-frontend-container {
    width: min(100%, 1000px);
    max-width: calc(100vw - 48px);
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c3e50;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lpm-frontend-header {
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.lpm-frontend-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lpm-dashboard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lpm-frontend-meta {
    font-size: 14px;
    color: #64748b;
    display: flex;
    gap: 20px;
}

.lpm-frontend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.lpm-frontend-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lpm-frontend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3b82f6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lpm-frontend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.08);
    border-color: #cbd5e1;
}

.lpm-frontend-card:hover::before {
    opacity: 1;
}

.lpm-frontend-card-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.lpm-frontend-card-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.lpm-frontend-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

.lpm-frontend-days-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.lpm-frontend-days-badge.escalated {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.lpm-frontend-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lpm-frontend-list li {
    font-size: 14px;
    color: #334155;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}

.lpm-frontend-list li:last-child {
    border-bottom: none;
}

.lpm-frontend-section {
    margin-top: 40px;
}

.lpm-frontend-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpm-frontend-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.lpm-frontend-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
    font-size: 14px;
}

.lpm-frontend-table th {
    background: #f1f5f9;
    padding: 14px 12px;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.lpm-frontend-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.lpm-frontend-table tr:last-child td {
    border-bottom: none;
}

.lpm-frontend-table tr:hover td {
    background: #f8fafc;
}

.lpm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.lpm-badge-success {
    background: #dcfce7;
    color: #14532d;
}

.lpm-badge-failed {
    background: #fee2e2;
    color: #7f1d1d;
}

.lpm-user-dashboard {
    width: min(100%, 1180px);
    max-width: calc(100vw - 48px);
}

.lpm-dashboard-kpis {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 20px;
}

.lpm-status-pills,
.lpm-user-actions,
.lpm-dashboard-actions,
.lpm-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lpm-status-pill,
.lpm-user-actions span,
.lpm-dashboard-button,
.lpm-row-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.lpm-status-pill {
    background: #e2e8f0;
    color: #334155;
}

.lpm-status-pill-aktif {
    background: #dcfce7;
    color: #14532d;
}

.lpm-status-pill-perhatian,
.lpm-status-pill-hampir-tamat {
    background: #fef3c7;
    color: #92400e;
}

.lpm-status-pill-kritikal,
.lpm-status-pill-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.lpm-user-actions .is-allowed {
    background: #dcfce7;
    color: #14532d;
}

.lpm-user-actions .is-muted {
    background: #f1f5f9;
    color: #64748b;
}

.lpm-section-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.lpm-section-heading-row .lpm-frontend-section-title {
    margin-bottom: 0;
}

.lpm-dashboard-button,
.lpm-row-actions a {
    border: 1px solid #cbd5e1;
    color: #1e293b;
    background: #ffffff;
}

.lpm-dashboard-button:hover,
.lpm-row-actions a:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
}

.lpm-dashboard-table td,
.lpm-dashboard-table th {
    white-space: normal;
}

.lpm-dashboard-table th:nth-child(1),
.lpm-dashboard-table td:nth-child(1) {
    width: 24%;
}

.lpm-dashboard-table th:nth-child(2),
.lpm-dashboard-table td:nth-child(2) {
    width: 11%;
}

.lpm-dashboard-table th:nth-child(3),
.lpm-dashboard-table td:nth-child(3) {
    width: 17%;
}

.lpm-dashboard-table th:nth-child(4),
.lpm-dashboard-table td:nth-child(4),
.lpm-dashboard-table th:nth-child(5),
.lpm-dashboard-table td:nth-child(5),
.lpm-dashboard-table th:nth-child(6),
.lpm-dashboard-table td:nth-child(6),
.lpm-dashboard-table th:nth-child(7),
.lpm-dashboard-table td:nth-child(7) {
    width: 9%;
}

.lpm-dashboard-table th:nth-child(8),
.lpm-dashboard-table td:nth-child(8) {
    width: 12%;
}

.lpm-row-actions {
    align-items: flex-start;
}

.lpm-row-actions a {
    min-height: 28px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

@media (max-width: 720px) {
    .lpm-frontend-container {
        margin: 20px 12px;
        padding: 18px;
    }

    .lpm-section-heading-row {
        display: block;
    }

    .lpm-dashboard-actions {
        margin-top: 12px;
    }
}

.lpm-login-shell {
    width: 100vw;
    min-height: calc(100vh - 140px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: grid;
    place-items: center;
    padding: 48px 16px;
    background: #f8fafc;
    box-sizing: border-box;
}

.lpm-login-panel {
    width: min(100%, 420px);
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.lpm-login-brand span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.lpm-login-brand h1 {
    margin: 18px 0 8px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.2;
}

.lpm-login-brand p {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

#lpm-loginform {
    margin: 0;
}

#lpm-loginform p {
    margin: 0 0 16px;
}

#lpm-loginform label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

#lpm-loginform input[type="text"],
#lpm-loginform input[type="password"] {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 15px;
    background: #ffffff;
}

#lpm-loginform input[type="text"]:focus,
#lpm-loginform input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

#lpm-loginform .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

#lpm-loginform .button-primary {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

#lpm-loginform .button-primary:hover {
    background: #1d4ed8;
}

.lpm-login-links {
    margin-top: 16px;
    text-align: center;
}

.lpm-login-links a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.lpm-language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #ffffff;
}

.lpm-language-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 28px;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.lpm-language-toggle a.is-active {
    background: #2563eb;
    color: #ffffff;
}

.lpm-login-panel .lpm-language-toggle {
    float: right;
    margin-bottom: 12px;
}

.lpm-login-brand {
    clear: both;
}

@media (max-width: 720px) {
    .lpm-dashboard-topbar {
        display: block;
    }

    .lpm-dashboard-topbar .lpm-language-toggle {
        margin-bottom: 14px;
    }
}
