@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.bg-primary {
    background-color: #003366;
}

.btn-primary {
    color: #fff;
    background-color: #003366;
    border-color: white;
    border-radius: 6px;
    height: 36px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0099cc;
        color: white;
        border-color: #0099cc
    }

.btn-secondary {
    color: white;
    background-color: #0099cc;
    border: 1px solid #0099cc;
    border-radius: 6px;
    height: 36px;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

    .btn-secondary:hover {
        background-color: #003366;
        color: white;
        border-color: #003366;
    }

.btn-success {
    color: #fff;
    background-color: #003366;
    border-color: white;
    border-radius: 6px;
    height: 36px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-success:hover {
        background-color: #0099cc;
        color: white;
        border-color: #0099cc
    }


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
    padding-bottom: 1.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.row-bottom-border {
    border-bottom: 1px solid #dbdbdb;
    padding: 5px 0px 5px 0px;
}

/* Loader */
.loader {
    width: 30px;
    aspect-ratio: 1;
    display: grid;
    animation: l14 4s infinite;
}

    .loader::before,
    .loader::after {
        content: "";
        grid-area: 1/1;
        border: 8px solid;
        border-radius: 50%;
        border-color: red red #0000 #0000;
        mix-blend-mode: darken;
        animation: l14 1s infinite linear;
    }

    .loader::after {
        border-color: #0000 #0000 blue blue;
        animation-direction: reverse;
    }

@keyframes l14 {
    100% {
        transform: rotate(1turn)
    }
}

/* PDF Viewer Modal Styles */
.pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pdf-modal {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pdf-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-custom-color {
    background-color: #003366;
    color: white;
    border: 1px solid #003366;
    height: 32px;
}

    .btn-custom-color:hover {
        background-color: #0099cc;
        border-color: #0099cc;
    }

/*.mykad-card {
    background-color: #e6f0ff;
    border-left: 4px solid #2c3e50;
}*/

.mykad-card {
    /*background: linear-gradient(135deg, rgba(0,51,102,0.05), rgba(0,191,255,0.1));*/
    /*background: #E6F7FB;*/
    /* background: #DFF6FF;*/
    /*border-left: 4px solid #2c3e50*/;
}

.card-body {
    /* Custom background */
    background: linear-gradient(135deg, rgba(0,51,102,0.05), rgba(0,191,255,0.1));
    border-left: 4px solid #2c3e50;
    /* Bootstrap utility styles replicated */
    border: 0; /* border-0 */
    box-shadow: var(--bs-box-shadow-sm) !important;
    border-radius: 1rem; /* rounded-4 (0.5rem) */
    padding: 1rem; /* optional kalau nak mimic .card */
}

.accordion-button:not(.collapsed) {
    color: #003366 !important;
    /*background-color: #003366 !important;*/
    background: linear-gradient(135deg, rgba(0,51,102,0.05), rgba(0,191,255,0.1));
    /*background: linear-gradient(135deg, #003366, #00BFFF);*/
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 rgba(0, 0, 0, 0.075) !important;
}

.section-header {
    background-color: #003366;
    color: white;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card {
    border-radius: 12px;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.cetakan h1, .cetakan h3 {
    color: #003366;
}

.cetakan .section-card {
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    background-color: #fff;
}

.cetakan .section-title {
    background: linear-gradient(135deg, rgba(0,51,102,0.05), rgba(0,191,255,0.1));
    color: #003366;
    padding: 0.75rem 1rem;
    font-weight: bold;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.cetakan .row-bottom-border {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.cetakan .label {
    font-weight: 600;
    color: #003366;
}

.cetakan .table caption {
    caption-side: top;
    font-weight: bold;
    color: #003366;
    text-align: left;
    padding: 0.5rem 0;
}

.cetakan .table thead {
    background-color: #003366;
    color: white;
}

.page-header {
    font-weight: 700;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.section-card {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.row-bottom-border {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.table-header {
    background-color: #003366;
    color: #fff;
    font-weight: 600;
}

.icon-container {
    display: grid;
    grid-auto-flow: column; /* default = semua dalam 1 baris */
    grid-auto-columns: 1fr; /* semua column sama besar */
    gap: 20px;
    background-color: white; /* biru cair */
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

/* Mobile view: tukar jadi 1 kolum */
@media (max-width: 768px) {
    .icon-container {
        grid-auto-flow: row; /* susun kebawah */
        grid-template-columns: 1fr; /* 1 icon per baris */
    }
}

.icon-card {
    text-align: center;
}

    .icon-card img {
        width: clamp(50px, 8vw, 80px);
        height: clamp(50px, 8vw, 80px);
        object-fit: contain;
        margin-bottom: 10px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .icon-card h5 {
        font-size: 14px;
        margin: 0;
        color: #003366;
        word-wrap: break-word;
    }

    .icon-card a {
        text-decoration: none; /* buang underline */
        color: inherit; /* ikut warna asal h5, bukan biru default link */
    }

        .icon-card a:hover h5 {
            color: #0066cc; /* contoh: bila hover teks tukar biru */
        }


.box-blue {
    /* background-color: #e6f0ff; */
    background: linear-gradient(135deg, rgba(0,51,102,0.05), rgba(0,191,255,0.1));
    border-radius: 12px;
    padding: 15px;
}

.icon-item img {
    max-height: 80px;
    transition: transform 0.2s;
}

    .icon-item img:hover {
        transform: scale(1.05);
    }

.icon-item h5 {
    font-size: 1rem;
    margin-top: 8px;
    color: #333;
}

.container-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #003366;
}

/*----------------------------------------------------------*/
/*styling untuk page LoginDisplay.razor*/
/*----------------------------------------------------------*/

.btn-nav {
    background-color: transparent;
    border-color: transparent;
    color: white;
}

    .btn-nav:hover {
        background-color: transparent;
        border-color: white;
        color: white;
    }

.bg-primary {
    background-color: #dc3545 !important;
}

.no-ml {
    margin-left: 0 !important;
}



/*----------------------------------------------------------*/
/*styling untuk page BorangKelompokCarian.razor*/
/*----------------------------------------------------------*/

.status-badge {
    padding: 0.45em 0.8em;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

    .status-badge.Wujud {
        background-color: #d4edda; /* pastel green */
        color: #155724;
    }

    .status-badge.Dalam-Tindakan {
        background-color: #fff3cd; /* pastel yellow */
        color: #856404;
    }

    .status-badge.Selesai {
        background-color: #d1ecf1; /* pastel blue */
        color: #0c5460;
    }

    .status-badge.unknown {
        background-color: #e2e3e5; /* pastel grey */
        color: #383d41;
    }

/*-------------------------------------------------------------------------------------------------------------*/
/*untuk header table*/
/*-------------------------------------------------------------------------------------------------------------*/
.headerTableMaklumat {
    background-color: #E6F0FF !important;
    color: black !important;
    width: auto !important;
    vertical-align: top;
}


/* Fancy Tabs */
.fancy-tabs .nav-link {
    color: #083464;
    font-weight: 600;
    padding: 14px 24px;
    margin-right: 10px;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap; /* prevent wrapping */
    font-size: 1rem;
}

.fancy-tabs .nav-link:hover {
    color: #2184D9;
    border-color: #2184D9;
    background-color: #f0f8ff;
    border-radius: 6px 6px 0 0;
}

.fancy-tabs .nav-link.active {
    color: #2184D9;
    border-color: #2184D9;
    font-weight: 700;
    border-bottom: 3px solid #2184D9;
    background-color: #ffffff;
    border-radius: 6px 6px 0 0;
}

/* Card look */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #ddd;
}


.section-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: #083464;
    margin-bottom: 1rem;
}

/* Table Design */
.trendy-table {
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 0.95rem;
    border: none;
}

    .trendy-table thead {
        background-color: #eaf2fb;
        color: #083464;
        font-weight: 600;
    }

        .trendy-table thead th {
            border: none;
            padding: 14px 16px;
            vertical-align: middle;
        }

    /* Center all table headers and data */
    .trendy-table th,
    .trendy-table td {
        text-align: center;
    }


    .trendy-table tbody tr {
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border-radius: 6px;
        transition: background 0.2s;
    }

    .trendy-table tbody td {
        padding: 14px 16px;
        vertical-align: middle;
        border: none;
    }

    .trendy-table tbody tr:hover {
        background-color: #f5faff;
    }



.link-primary {
    color: #2184D9;
    text-decoration: none;
}

    .link-primary:hover {
        color: #125e9e;
        text-decoration: underline;
    }


.validation-message {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 2px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
