/* =========================================================
   SISTEM BOOKING RUANGAN MEETING & ZOOM
   Tema: Distributor Bahan Bangunan (industrial & profesional)
   ========================================================= */

:root {
    --navy: #16324F;
    --steel: #2A6F97;
    --orange: #E85D04;
    --orange-dark: #C24C00;
    --concrete: #F2F1ED;
    --concrete-dark: #E4E2DA;
    --ink: #1F2933;
    --muted: #6B7280;
    --green: #2E7D32;
    --white: #FFFFFF;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(22, 50, 79, 0.08);
    --shadow-lg: 0 12px 30px rgba(22, 50, 79, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--concrete);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

a { text-decoration: none; }

/* ---------------- TOPBAR / STRIP ---------------- */
.top-strip {
    background: var(--navy);
    color: #cfe0ea;
    font-size: 13px;
    padding: 6px 0;
}
.top-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.material-chips { display: flex; gap: 14px; }
.material-chips span { display: flex; align-items: center; gap: 5px; opacity: .9; }

/* ---------------- NAVBAR ---------------- */
.navbar-custom {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-custom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 18px;
    flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-text .company { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy); font-size: 17px; }
.brand-text .tagline { font-size: 12px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
    color: var(--navy);
    font-weight: 600;
    font-size: 14.5px;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: .15s;
}
.nav-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.nav-links .dept-pill {
    background: var(--concrete);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    border-bottom: none;
    transition: background .15s;
}
.nav-links .dept-pill:hover {
    background: #E2E5E8;
    border-bottom: none;
    color: var(--navy);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: #C0392B; color: #fff; }
.btn-danger:hover { background: #a5301f; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- HERO ---------------- */
.hero {
    background:
        linear-gradient(120deg, rgba(22,50,79,.94), rgba(42,111,151,.90)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px);
    color: #fff;
    padding: 54px 0 64px;
    position: relative;
    overflow: hidden;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-text .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12);
    padding: 6px 14px; border-radius: 20px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
    margin-bottom: 16px;
}
.hero-text h1 { color: #fff; font-size: 34px; margin: 0 0 14px; line-height: 1.25; }
.hero-text p { color: #dce8f0; font-size: 15.5px; max-width: 520px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-materials {
    flex: 1 1 320px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.material-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(2px);
}
.material-card .ic { font-size: 26px; margin-bottom: 6px; }
.material-card .lbl { font-size: 12.5px; color: #e6eef3; font-weight: 600; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 40px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.section-title h2 { font-size: 22px; margin: 0; }
.section-title p.sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

/* ---------------- INFO / ROOM CARDS ---------------- */
.room-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; margin-bottom: 26px; }
.room-info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    border-left: 5px solid var(--steel);
    display: flex; gap: 14px; align-items: flex-start;
}
.room-info-card .ic { font-size: 26px; }
.room-info-card h4 { margin: 0 0 4px; font-size: 15.5px; }
.room-info-card p { margin: 0; color: var(--muted); font-size: 13px; }
.room-info-card .cap { display:inline-block; margin-top:6px; background:var(--concrete); color:var(--navy); font-weight:700; font-size:12px; padding:3px 10px; border-radius: 12px; }

/* ---------------- LEGEND ---------------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--navy); font-weight: 600; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------------- CALENDAR ---------------- */
#calendar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.fc { font-family: 'Inter', sans-serif; }
.fc .fc-toolbar-title { font-family: 'Poppins', sans-serif; color: var(--navy); font-size: 19px; }
.fc .fc-button-primary { background: var(--navy); border-color: var(--navy); }
.fc .fc-button-primary:hover { background: var(--steel); border-color: var(--steel); }
.fc .fc-button-primary:disabled { background: #90a4b5; border-color: #90a4b5; }
.fc-daygrid-event { border: none; padding: 1px 4px; font-size: 11.5px; }
.fc-day-today { background: rgba(232, 93, 4, 0.06) !important; }

/* ---------------- FORMS ---------------- */
.form-label { font-weight: 600; font-size: 13.5px; color: var(--navy); margin-bottom: 6px; display: block; }
.form-control, select.form-control {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #DADFE3;
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
.form-control:focus, select.form-control:focus {
    outline: none;
    border-color: var(--steel);
    box-shadow: 0 0 0 3px rgba(42,111,151,.15);
}
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-text { font-size: 12px; color: var(--muted); margin-top: 5px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-option {
    border: 1.5px solid #DADFE3; border-radius: 8px; padding: 12px 16px;
    display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; min-width: 160px;
    transition: .15s;
}
.radio-option:hover { border-color: var(--steel); }
.radio-option input:checked ~ span, .radio-option.active { border-color: var(--orange); }

/* ---------------- ALERTS ---------------- */
.alert { padding: 13px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #E6F4EA; color: #1E7E34; border: 1px solid #b7e1c1; }
.alert-danger { background: #FDECEA; color: #C0392B; border: 1px solid #f4c3bd; }
.alert-info { background: #E8F1F8; color: var(--steel); border: 1px solid #bcdcf0; }

/* ---------------- TABLE ---------------- */
table.list-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.list-table th, table.list-table td { padding: 12px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid #EEEFEF; }
table.list-table th { background: var(--navy); color: #fff; font-weight: 600; }
table.list-table tr:hover td { background: #FAFBFC; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.badge-room { background: #E8F1F8; color: var(--steel); }
.badge-zoom { background: #EDE7F6; color: #6A4C93; }
.badge-recurring { background: #FFF3E0; color: var(--orange-dark); }

/* ---------------- LOGIN ---------------- */
.login-wrap {
    min-height: calc(100vh - 140px);
    display: flex; align-items: center; justify-content: center;
    background:
        linear-gradient(120deg, rgba(22,50,79,.95), rgba(42,111,151,.92)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px);
    padding: 40px 16px;
}
.login-card {
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 36px 32px; width: 100%; max-width: 400px;
}
.login-card .brand-logo { margin: 0 auto 14px; }
.login-card h2 { text-align: center; margin: 0 0 6px; }
.login-card p.sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

/* ---------------- FOOTER ---------------- */
footer {
    background: var(--navy);
    color: #cfe0ea;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 13.5px;
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
footer a { color: #cfe0ea; }

/* ---------------- WHATSAPP FLOAT ---------------- */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37,211,102,.45);
    z-index: 999;
    font-size: 28px;
    transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-tooltip {
    position: fixed;
    bottom: 34px;
    right: 92px;
    background: #16324F;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    z-index: 999;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.wa-float:hover ~ .wa-tooltip { opacity: 1; }

/* Tombol hamburger - hanya tampil di layar sempit (lihat media query) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform .2s, opacity .2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .navbar-custom { position: relative; }
    .navbar-custom .container { position: relative; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 20px 18px;
        box-shadow: var(--shadow);
        border-top: 1px solid #EEEFEF;
        z-index: 200;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 6px; border-bottom: 1px solid #F0F1F2; width: 100%; }
    .nav-links .dept-pill { text-align: center; }
    .nav-links .btn { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
    .top-strip .material-chips {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .top-strip .material-chips::-webkit-scrollbar { display: none; }
    .top-strip .material-chips span { flex-shrink: 0; }
    .top-strip .container { flex-wrap: nowrap; overflow: hidden; }
    .top-strip .container > div:last-child { display: none; }

    .hero { padding: 32px 0 40px; }
    .hero-text h1 { font-size: 24px; }
    .hero-text p { font-size: 14px; }
    .hero-materials { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .material-card { padding: 12px; }

    .section { padding: 24px 0; }
    .section-title h2 { font-size: 19px; }

    .form-row { grid-template-columns: 1fr; }
    .radio-group { flex-direction: column; }
    .radio-option { min-width: 0; width: 100%; }

    .card { padding: 16px; }
    .login-card { padding: 28px 20px; }

    table.list-table th, table.list-table td { padding: 10px; font-size: 12.5px; white-space: nowrap; }

    footer .container { flex-direction: column; text-align: center; }

    /* Kalender: toolbar dibuat menumpuk rapi & tombol lebih ringkas di layar sempit */
    #calendar { padding: 10px; }
    .fc .fc-toolbar { flex-direction: column; gap: 10px; align-items: stretch; }
    .fc .fc-toolbar-chunk { display: flex; justify-content: center; }
    .fc .fc-toolbar-title { font-size: 16px; text-align: center; }
    .fc .fc-button { padding: 5px 8px; font-size: 12.5px; }
    .fc-daygrid-event { font-size: 10.5px; }
    .fc-col-header-cell-cushion, .fc-daygrid-day-number { font-size: 12px; }
}

@media (max-width: 420px) {
    .brand-text .tagline { display: none; }
    .brand-text .company { font-size: 15px; }
    .hero-materials { grid-template-columns: 1fr 1fr; }
    .wa-float { width: 50px; height: 50px; font-size: 24px; bottom: 16px; right: 16px; }
    .container { padding: 0 14px; }
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mt-0{margin-top:0} .mb-0{margin-bottom:0} .text-muted{color:var(--muted)}
