﻿:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

/* content atas */
.hero-section > * {
    position: relative;
    z-index: 2;
}

/* zoom */
@keyframes slowZoom {
    0% {
        background-size: 100%;
    }

    100% {
        background-size: 110%;
    }
}

/* floating */
@keyframes float {
    0%,100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* jatuh */
@keyframes debrisFall {

    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.bg-credit {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    background: rgba(0,0,0,0.45);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.geo-shape {
    position: absolute;
    opacity: 0.1;
}

    .geo-shape:nth-child(1) {
        top: 15%;
        left: 10%;
        width: 80px;
        height: 80px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        transform: rotate(45deg);
        animation: pulse 4s ease-in-out infinite;
    }

    .geo-shape:nth-child(2) {
        top: 60%;
        right: 15%;
        width: 60px;
        height: 60px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        animation: spin 20s linear infinite;
    }

    .geo-shape:nth-child(3) {
        bottom: 20%;
        left: 20%;
        width: 100px;
        height: 2px;
        background: rgba(255, 255, 255, 0.3);
        animation: extend 8s ease-in-out infinite;
    }

.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar.scrolled .navbar-brand {
    color: black !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

    .nav-link:hover {
        color: white !important;
    }

.navbar.scrolled .nav-link {
    color: black !important;
}



.hero-content {
    position: relative;
    z-index: 1;
}

    .hero-content h1 {
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .hero-content .lead {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.2rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

    .login-card h3.system-title {
        color: #007B78;
        font-weight: 700;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 15px;
        border-bottom: 2px solid #007B78;
    }

    .login-card h3.login-title {
        color: #333;
        font-weight: 600;
        font-size: 1.3rem;
    }

.btn-gradient {
    background: #007B78;
    border: none;
    color: white;
    font-weight: 600;
    padding: 9px 30px;
    /*            border-radius: 50px;*/
    transition: all 0.3s ease;
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        color: black;
    }

.btn-forgot {
    background: #F58345;
    border: none;
    color: white;
    font-weight: 600;
    padding: 9px 30px;
    /*            border-radius: 50px;*/
    transition: all 0.3s ease;
}

    .btn-forgot:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        color: black;
    }

.notification-banner {
    background: var(--secondary-gradient);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.notification-scroll {
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

.app-links-section {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%23f8f9fa"/><g fill="%23e9ecef" opacity="0.6"><circle cx="100" cy="100" r="50"/><circle cx="300" cy="200" r="40"/><circle cx="500" cy="150" r="60"/><circle cx="700" cy="250" r="45"/><circle cx="900" cy="120" r="55"/><circle cx="1100" cy="180" r="35"/></g><g fill="%23dee2e6" opacity="0.4"><rect x="50" y="350" width="100" height="80" rx="10"/><rect x="250" y="400" width="120" height="60" rx="8"/><rect x="450" y="380" width="90" height="90" rx="12"/><rect x="650" y="420" width="110" height="70" rx="9"/><rect x="850" y="360" width="95" height="85" rx="11"/><rect x="1050" y="390" width="85" height="75" rx="7"/></g></svg>');
    background-size: cover;
    background-position: center;
}

.news-carousel-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.95) 0%, rgba(73, 80, 87, 0.95) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect width="1200" height="400" fill="%23212529"/><g fill="%23495057" opacity="0.3"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,0 L0,0 Z"/><path d="M0,200 Q400,150 800,200 T1200,200 L1200,100 L0,100 Z"/><path d="M0,300 Q200,250 400,300 T1200,300 L1200,200 L0,200 Z"/></g></svg>');
    background-size: cover;
    background-position: center;
    color: white;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.15);
    }

.news-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: white;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

    .app-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

    .app-icon.primary {
        background: var(--primary-gradient);
    }
    /*        .app-icon.secondary { background: var(--secondary-gradient); }*/
    .app-icon.success {
        background: var(--success-gradient);
    }

    .app-icon.warning {
        background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    }

    .app-icon.secondary img {
        width: 100px; /* adjust as needed */
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .app-icon.secondary:hover {
        transform: scale(1.05);
    }

.features-section {
    padding: 80px 0;
    /*            background:
                linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%234f46e5"/><g fill="%236366f1" opacity="0.4"><polygon points="0,0 400,100 800,50 1200,150 1200,0"/><polygon points="0,200 300,250 600,200 900,300 1200,250 1200,150 0,100"/><polygon points="0,400 500,350 1000,400 1200,350 1200,600 0,600"/></g></svg>');
            */
    background-size: cover;
    background-position: center;
    color: black;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer {
    background: #343a40;
    color: white;
    padding: 40px 0 20px;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 333;
    background: #FC5C26;
    display: none;
    height: 50px;
    width: 50px;
    padding: 13px;
    border-radius: 50%;
}

.back-to-top svg {
    stroke-width: 5px;
}

.back-to-top:hover {
    background: #FC5C26;
    box-shadow: none;
    border: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: rotate(45deg) scale(1);
    }

    50% {
        opacity: 0.3;
        transform: rotate(45deg) scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes extend {
    0%, 100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(1.5);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .app-card {
        margin-bottom: 30px;
    }
}

.myid-login-btn {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 550;
    font-size: 14px;
    color: #007bff;
    line-height: 1;
    transition: all 0.3s ease;
}

    .myid-login-btn:hover {
        background-color: #007bff;
        color: white;
        font-weight: 600;
    }

    .myid-login-btn img {
        height: 24px;
        width: auto;
        margin-right: 10px;
    }

.myreg-btn {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #007B78;
    border-radius: 10px;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 550;
    font-size: 14px;
    color: #007B78;
    line-height: 1;
    transition: all 0.3s ease;
}

    .myreg-btn:hover {
        background-color: #007B78;
        color: white;
        font-weight: 600;
    }

.flip {
    padding: 10px;
    background-color: lemonchiffon;
    border: thin 0.5px;
}

.panel {
    padding: 25px;
    display: none;
    background-color: antiquewhite;
}

.flatpickr-day.booked-day {
    background-color: #f44336 !important; /* red */
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.flatpickr-day.available-day {
    background-color: #4caf50;
    color: white;
}

.booked-day {
    background-color: #ffc8c8 !important;
    color: #888 !important;
    cursor: not-allowed;
    text-decoration: line-through;
}

.legend {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.legend-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid #ccc;
}

.legend-circle.booked {
    background-color: #ffdddd;
}

.legend-circle.available {
    background-color: #e0ffe0;
}

.bold{
    font-weight:bold !important;
}

.doc-row {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.custom-check {
    width: 22px;
    height: 22px;
    accent-color: #28a745; /* hijau */
    cursor: not-allowed;
}


/* =========================
   pengumuman style
========================= */
#articleModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.7;
}

.btn-lihat-lagi {
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

    .btn-lihat-lagi:hover {
        text-decoration: none;
    }

#articleModalBody {
    color: #000;
    font-size: 15px;
    line-height: 1.7;
}

#articleModalLabel {
    color: #000;
    font-size: 20px; /* ubah sikit bagi title nampak */
    font-weight: 700;
    line-height: 1.5;
}

.news-modal {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
}

.news-header {
    background: linear-gradient(135deg,#ff6a6a,#ff3d3d);
    color: white;
    padding: 18px 25px;
    display: flex;
    align-items: center;
}

.news-date-modal {
    font-size: 13px;
    opacity: 0.95;
}

.news-header .modal-title {
    font-weight: 600;
}

.news-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    padding: 10px 5px;
}


/* =========================
   NEWS CARD NEW STYLE
========================= */

.news-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e9e9e9;
    transition: all 0.25s ease;
    height: 100%;
}

    .news-card:hover {
        background: #2d2d2d;
        border-color: #2d2d2d;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    transition: 0.25s ease;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 55px;
    transition: 0.25s ease;
}

.news-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    transition: 0.25s ease;
}

    .news-excerpt p {
        margin-bottom: 0;
    }

/* TEXT JADI PUTIH MASA HOVER */
.news-card:hover .news-date,
.news-card:hover .news-title,
.news-card:hover .news-excerpt {
    color: #fff;
}

.pdf-link {
    text-decoration: none;
    transition: 0.3s;
}

    .pdf-link:hover {
        transform: scale(1.1);
    }

/* BUTTON MASA HOVER */
.news-card:hover .btn-lihat-lagi {
    background: #fff;
    color: #000 !important;
    border-color: #fff;
}

/*=========================
    borang style
===========================*/
.permohonan-page .modern-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

.permohonan-page .modern-header {
    padding: 35px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

    .permohonan-page .modern-header h2 {
        margin: 0;
        font-weight: 700;
        font-size: 2rem;
    }

    .permohonan-page .modern-header p {
        margin-top: 8px;
        margin-bottom: 0;
        opacity: .9;
    }

.permohonan-page .modern-body {
    padding: 35px;
}

.permohonan-page .section-title {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.permohonan-page .form-label,
.permohonan-page label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.permohonan-page .labelReq2::after {
    content: " *";
    color: red;
}

.permohonan-page .form-control,
.permohonan-page .form-select {
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    min-height: 52px;
    padding: 10px 16px;
    transition: all .2s ease;
}

.permohonan-page textarea.form-control {
    min-height: 120px;
}

.permohonan-page .form-control:focus,
.permohonan-page .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.15rem rgba(59,130,246,.15);
}

.permohonan-page .modern-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 25px;
    background: #f8fafc;
    text-align: center;
}

    .permohonan-page .modern-upload i {
        font-size: 35px;
        color: #2563eb;
        margin-bottom: 10px;
    }

    .permohonan-page .modern-upload small {
        display: block;
        margin-top: 8px;
        color: #64748b;
    }

.permohonan-page .btn-modern {
    border-radius: 14px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    transition: .2s;
}

.permohonan-page .btn-submit-modern {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

    .permohonan-page .btn-submit-modern:hover {
        opacity: .95;
        color: white;
    }

.permohonan-page .btn-check-modern {
    background: #e2e8f0;
    color: #0f172a;
}

    .permohonan-page .btn-check-modern:hover {
        background: #cbd5e1;
    }

.permohonan-page .legend {
    margin-top: 10px;
    font-size: 13px;
}

.permohonan-page .legend-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.permohonan-page .booked {
    background: red;
}

.permohonan-page .check-result {
    display: none;
    padding: 14px;
    border-radius: 14px;
    margin-top: 15px;
    font-weight: 600;
}

.permohonan-page .check-success {
    background: #ecfdf5;
    color: #059669;
}

.permohonan-page .check-danger {
    background: #fef2f2;
    color: #dc2626;
}

@@media(max-width:768px) {

    .permohonan-page .modern-header {
        padding: 25px;
    }

    .permohonan-page .modern-body {
        padding: 20px;
    }

    .permohonan-page .btn-modern {
        width: 100%;
        margin-bottom: 10px;
    }
}