
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #252525;
}

button, input {
    font: inherit;
}

/* LOGIN */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 35px 6%;
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(30, 10, 10, 0.25),
            rgba(120, 0, 0, 0.45)
        ),
        url("./assets/ahass-slawi.jpg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 38px;
    border-radius: 16px;
    box-shadow: 0 15px 45px #0003;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    color: #c8102e;
    font-size: 30px;
}

.login-logo p {
    margin-top: 8px;
    color: #555;
}

.login-logo span {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #c8102e;
    letter-spacing: 2px;
}

.login-card h2 {
    margin-bottom: 8px;
}

.login-description {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
}

.login-card label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin: 16px 0 8px;
}

.login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.login-card input:focus {
    border-color: #c8102e;
}

.login-card button {
    width: 100%;
    padding: 14px;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 18px;
}

.login-card button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.login-message {
    color: #c8102e;
    font-size: 13px;
    margin-top: 12px;
}

.login-footer {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 30px;
}

/* DASHBOARD */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 245px;
    background: #20232a;
    color: white;
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar h2 {
    color: white;
    font-size: 23px;
}

.sidebar > p {
    color: #aaa;
    font-size: 13px;
    margin: 7px 0 35px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    color: #ccc;
    text-decoration: none;
    padding: 13px;
    border-radius: 7px;
    font-size: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #c8102e;
    color: white;
}

.sidebar button {
    margin-top: auto;
    padding: 13px;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

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

.dashboard-main header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.dashboard-main header h1 {
    font-size: 25px;
}

.dashboard-main header p {
    color: #777;
    margin-top: 7px;
    font-size: 14px;
}

.admin-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.admin-info span {
    color: #c8102e;
    font-size: 11px;
    font-weight: bold;
}

.welcome-card {
    background: linear-gradient(110deg, #c8102e, #ed2939);
    color: white;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.welcome-card h2 {
    margin-bottom: 10px;
}

.welcome-card p {
    font-size: 14px;
    opacity: .9;
}

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

.kpi-card,
.content-card {
    background: white;
    padding: 23px;
    border-radius: 12px;
    box-shadow: 0 3px 12px #00000008;
}

.kpi-card span {
    color: #777;
    font-size: 13px;
}

.kpi-card h2 {
    margin-top: 15px;
    font-size: 30px;
    color: #c8102e;
}

.content-card h2 {
    margin-bottom: 12px;
}

.content-card p {
    color: #777;
    font-size: 14px;
}

/* RESPONSIVE */

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

@media (max-width: 600px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar button {
        margin-top: 20px;
    }

    .dashboard-main {
        padding: 18px;
    }

    .dashboard-main header {
        align-items: flex-start;
    }

    .dashboard-main header h1 {
        font-size: 20px;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kpi-card {
        padding: 16px;
    }

    .kpi-card h2 {
        font-size: 24px;
    }

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

/* =====================================
   AHASS CRM BRANDING LOGIN
===================================== */

.login-wrapper {
    justify-content: space-between;
    gap: 35px;
    padding: 35px 5%;
    background-image:
        linear-gradient(
            90deg,
            rgba(30, 0, 0, 0.76),
            rgba(30, 0, 0, 0.38),
            rgba(80, 0, 0, 0.30)
        ),
        url("./assets/ahass-slawi.jpg.png");
    background-position: center;
    background-size: cover;
}

/* BRANDING KIRI */

.login-brand {
    flex: 1;
    max-width: 650px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    padding: 20px 0;
    text-shadow: 0 2px 8px #0008;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-honda {
    font-size: 25px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 2px;
}

.brand-divider {
    height: 45px;
    width: 2px;
    background: #ffffffa0;
}

.brand-ahass {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand-ahass strong {
    font-size: 21px;
}

.brand-ahass span {
    font-size: 12px;
    letter-spacing: 2px;
}

.brand-content {
    max-width: 600px;
    margin: 45px 0;
}

.brand-label {
    display: inline-block;
    padding: 8px 13px;
    background: #c8102e;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.brand-content h1 {
    font-size: clamp(42px, 5vw, 65px);
    font-weight: 900;
    letter-spacing: -2px;
}

.brand-content h1 span {
    color: #ff304c;
}

.brand-content h2 {
    font-size: 17px;
    font-weight: 500;
    margin-top: 8px;
}

.brand-description {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 18px;
    max-width: 490px;
    color: #fff;
}

.brand-features {
    display: grid;
    gap: 12px;
    margin-top: 30px;
    max-width: 490px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    border: 1px solid #ffffff40;
    background: #39000080;
    border-radius: 9px;
    backdrop-filter: blur(5px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #c8102e;
    border-radius: 8px;
    font-size: 21px;
    flex-shrink: 0;
}

.feature-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-item strong {
    font-size: 13px;
}

.feature-item small {
    font-size: 11px;
    color: #eee;
}

.brand-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.brand-bottom span {
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 1px;
}

/* LOGIN CARD KANAN */

.login-card {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    padding: 35px;
    border-radius: 18px;
    background: #fff;
}

.login-logo-mark {
    font-size: 31px;
    color: #c8102e;
    font-weight: 900;
    font-style: italic;
}

.login-logo p {
    font-weight: bold;
    letter-spacing: 1px;
}

.login-logo span {
    font-weight: bold;
}

.login-footer span {
    display: block;
    margin-top: 6px;
    font-size: 10px;
}

/* RESPONSIVE TABLET */

@media (max-width: 1050px) {
    .login-wrapper {
        padding: 25px;
        gap: 20px;
    }

    .login-brand {
        max-width: 500px;
    }

    .login-card {
        max-width: 380px;
        padding: 25px;
    }

    .brand-content h1 {
        font-size: 42px;
    }
}

/* RESPONSIVE HP */

@media (max-width: 750px) {
    .login-wrapper {
        justify-content: center;
        flex-direction: column;
        padding: 25px 16px;
        gap: 20px;
    }

    .login-brand {
        max-width: 100%;
        padding: 10px 0;
        align-self: auto;
    }

    .brand-content {
        margin: 25px 0;
    }

    .brand-content h1 {
        font-size: 38px;
    }

    .brand-content h2 {
        font-size: 14px;
    }

    .brand-features {
        gap: 8px;
    }

    .brand-bottom {
        display: none;
    }

    .login-card {
        max-width: 420px;
    }
}


/* CRM modules */
.sidebar nav a { display:block; padding:11px 13px; margin:5px 0; border-radius:8px; text-decoration:none; color:inherit; }
.sidebar nav a.active { background:rgba(200,16,46,.12); color:#c8102e; font-weight:700; }
.crm-form { display:grid; grid-template-columns:1fr; gap:8px; max-width:760px; }
.crm-form input,.crm-form select,.crm-form textarea,#customerSearch,#logSearch,#segmentFilter { width:100%; box-sizing:border-box; padding:11px; border:1px solid #d4d4d4; border-radius:8px; font:inherit; }
.crm-form label { font-weight:600; margin-top:7px; }
button { cursor:pointer; border:0; border-radius:7px; padding:10px 14px; background:#c8102e; color:#fff; font-weight:600; }
button:disabled { opacity:.6; cursor:wait; }
.content-card table th,.content-card table td { border-bottom:1px solid #e5e7eb; vertical-align:top; }
.content-card table td { overflow-wrap:anywhere; }
#pageContent .content-card { margin-bottom:18px; }
@media(max-width:760px){ .dashboard-wrapper{display:block;} .sidebar{width:auto;} .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;} .dashboard-main{padding:14px;} .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
