﻿/* ----------------------------------------------------------
   GLOBAL PAGE WRAPPER
---------------------------------------------------------- */
.modern-page {
    background: #f5f7fb !important;
    /*min-height: 100vh;*/
    padding-bottom: 40px;
}

/* ----------------------------------------------------------
   PAGE HEADER
---------------------------------------------------------- */
.page-header-modern {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.05);
}

.header-text {
    margin-left: 1rem;
}

.page-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.record-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

.page-header-modern .btn-primary {
    border-radius: 6px;
    padding: 8px 15px;
    font-weight: 500;
}


/* Icon Box */
.header-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #f8f9fc !important;
    border: 1px solid #e5e7ef;
    margin-right: 12px;
    transition: all 0.2s ease;
}

    .header-icon i {
        transition: transform 0.2s ease;
    }

    .header-icon:hover {
        background: #eef0f5 !important;
        border-color: #d6d9e4;
    }

        .header-icon:hover i {
            transform: scale(1.08);
        }

/* ----------------------------------------------------------
   SEARCH BOX
---------------------------------------------------------- */
.search-box-modern {
    position: relative;
    width: 200px;
}

    .search-box-modern .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }

    .search-box-modern .search-input {
        padding-left: 38px;
        padding-right: 10px;
        border-radius: 6px;
    }

/* ----------------------------------------------------------
   MODERN CARD
---------------------------------------------------------- */
.modern-card {
    border-radius: 10px;
    background: #fff;
}

/* ----------------------------------------------------------
   TABLE DESIGN
---------------------------------------------------------- */
.modern-table thead {
    background: #f0f2f7 !important;
    font-size: 0.9rem;
}

.modern-table th {
    font-weight: 600;
    white-space: nowrap;
}

.modern-table td {
    font-size: 0.9rem;
    padding: 10px 12px;
}

.modern-table tbody tr:hover {
    background: #f9fafc !important;
}

/* fix for actions column */
.modern-table .text-end button {
    padding: 4px 10px;
}

/* ----------------------------------------------------------
   MODERN MODAL
---------------------------------------------------------- */
.modern-modal {
    border-radius: 12px;
}

    .modern-modal .modal-header {
        border-bottom: 0;
        padding: 16px 20px;
    }

    .modern-modal .modal-body {
        padding: 20px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .modern-modal .modal-footer {
        border-top: 0;
    }

/* ----------------------------------------------------------
   FORM ELEMENTS
---------------------------------------------------------- */
.modern-select,
.modern-input,
.modern-textarea {
    border-radius: 6px !important;
}

.form-label.required::after {
    content: " *";
    color: red;
}

.div-header {
    background: linear-gradient(135deg, #f4f6f8, #e6eaee);
    color: #1f2937; /* slate-800 */
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-left: 4px solid #0d6efd; /* Bootstrap primary */
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.scroll-container {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: none;
}

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn-primary {
    padding: 8px 18px;
    border-radius: 6px;
}

.btn-light {
    border-radius: 6px;
}

.btn-warning {
    border-radius: 6px;
}

/* --------------------------------------------------
   TABLE STYLING
--------------------------------------------------*/
.card {
    border-radius: 14px;
    border: none;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.07);
}

.table-responsive {
    padding-bottom: 10px;
}

.table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table tbody tr {
    transition: 0.25s;
}

    .table tbody tr:hover {
        background: #f1f5f9;
    }

/* Action column */
.table td .btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem !important;
}


/* --------------------------------------------------
   MODAL
--------------------------------------------------*/
.modal-content {
    border-radius: 16px !important;
    border: none;
    box-shadow: 0px 8px 28px rgba(0,0,0,0.15);
}

.modal-header {
    background: #f1f5f9;
    border-radius: 16px 16px 0 0 !important;
}

.modal-title {
    font-weight: 700;
    color: #1e293b;
}

/* --------------------------------------------------
   FORM FIELDS
--------------------------------------------------*/
.form-control,
.form-select {
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    transition: 0.2s;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
    }

.form-label {
    font-weight: 600;
    color: #334155;
}

.text-danger {
    font-size: 12px;
}

/* --------------------------------------------------
   ACCORDION
--------------------------------------------------*/
/*.accordion-button {
    background: #eff6ff !important;
    color: #1e40af !important;
    font-weight: 600;
    border-radius: 10px !important;
    border: none;
}

    .accordion-button:not(.collapsed) {
        color: #1d4ed8 !important;
        background: #dbeafe !important;
        box-shadow: none;
    }

*/

/* --------------------------------------------------
   IMAGE PREVIEW BOXES
--------------------------------------------------*/
img#img_company_logo,
img#img_company_qr {
    border-radius: 10px;
    object-fit: contain;
}

/* --------------------------------------------------
   ACCORDION
--------------------------------------------------*/

.modern-accordion .accordion-button {
    background: #f8f9fa;
    border-radius: 0.75rem;
}

    .modern-accordion .accordion-button:not(.collapsed) {
        background: #e7f1ff;
        color: #0d6efd;
        box-shadow: none;
    }

.modern-accordion .accordion-body {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px !important;
}

.modern-accordion.accordion-item {
    border: none;
}

.modern-accordion .form-label.small {
    font-size: 0.75rem;
    margin-bottom: 2px;
}


/* ----------------------------------------------------------
   RESPONSIVE FIXES
---------------------------------------------------------- */
@media (max-width: 768px) {
    .page-header-modern {
        padding: 18px;
        text-align: center;
    }

    .header-icon {
        margin: 0 auto 10px;
    }

    .header-actions {
        justify-content: center;
    }

    .search-box-modern {
        width: 100%;
    }

    .d-flex.align-items-center.mt-3 {
        justify-content: center;
    }
}



/* ======= AUTH LAYOUT ========= */
/* Full screen background */
.auth-bg {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.10) );
}

/* Container above background */
.auth-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5%;
}


/* Left content */
.auth-left {
    flex: 1;
    color: #ffffff;
    max-width: 600px;
    padding-right: 60px;
}

.auth-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.auth-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 28px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .auth-features li {
        font-size: 15px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
    }

    .auth-features i {
        color: #4ade80; /* soft enterprise green */
        margin-right: 10px;
        font-size: 16px;
    }


/* Right panel */
.auth-right {
    width: 420px;
}

/* Card */
.auth-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.6s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .auth-content {
        justify-content: center;
        padding: 20px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
        max-width: 420px;
    }
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
