/* ===========================
   Global
=========================== */

body{
    margin:0;
    background:#f5f7fb;
    font-family:Arial, Helvetica, sans-serif;
    color:#1f2937;
}

/* ===============================
   Layout
================================= */

body{
    margin:0;
    background:#F5F7FB;
    font-family:Inter,sans-serif;
}

.qa-admin-wrapper{
    display:flex;
    min-height:100vh;
    background:#F5F7FB;
}

.qa-admin-content{
    flex:1;
    padding:35px 40px;
    background:#F6F8FC;
}

/* ===========================
   Sidebar
=========================== */

.qa-sidebar{

    width: 300px;
    background:#fff;

    padding:30px 20px;

    display:flex;
    flex-direction:column;

    border-right:1px solid #ECECEC;

}

.qa-logo{

    text-align:center;

    margin-bottom:40px;

}

.qa-logo h2{

    color:#1F73F1;

    font-size:58px;

    font-weight:700;

}

.qa-menu{

    list-style:none;

    padding:0;

    margin:0;
    font-size: 22px;

}

.qa-menu li{

    margin-bottom:22px;

}

.qa-menu a{

    display:flex;

    align-items:center;

    gap:14px;

    padding:16px 18px;

    color:#2B2B2B;

    text-decoration:none;

    border-radius:14px;

    transition:.3s;

}

.qa-menu a:hover{

    background:#F5F7FB;

}

.qa-menu a.active{

    background:#1976F3;

    /* color:#fff; */

}

.qa-sidebar-footer{

    margin-top:auto;

}

.qa-sidebar-footer a{

    display:flex;

    align-items:center;

    gap:12px;

    color:#FF3B30;

    text-decoration:none;

    padding:15px;

}

/* ===========================
   Header
=========================== */

.qa-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.qa-header h2{

    font-size:40px;

    margin:0;

    font-weight:700;

}

.qa-header p{

    color:#808080;

    margin-top:8px;

}

/* ===========================
   Buttons
=========================== */

.qa-btn{
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:12px 22px;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
}

.qa-btn:hover{
    background:#1d4ed8;
}

/* ===========================
   Dashboard Cards
=========================== */

.qa-dashboard-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.qa-card{
display:flex;
    align-items:center;
    gap:20px;

    padding:25px;

    background:#fff;
    border-radius:18px;
}

.qa-card h4{
    margin:0;
    color:#6b7280;
    font-size:15px;
}

.qa-card h2{
    margin:12px 0 0;
    font-size:32px;
}

/* ===========================
   Table
=========================== */

.qa-table{
    width:100%;
    border-collapse:seperate;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    border-spacing: 0;
    font-size: 20px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif
}

.qa-table thead{
    background:#F7F8FC;
}

.qa-table th{
    padding:22px;
    text-align:left;
    font-size:14px;
    font-weight:600;
    color:#374151;
}

.qa-table td{
    padding:22px;
    border-top:1px solid #e5e7eb;
}

.qa-table tbody tr{
    transition:.3s;
}

.qa-table tbody tr:hover{
    background:#f9fafb;
}

/* ===========================
   Status Badge
=========================== */

.qa-badge{
    display:inline-block;
    padding:6px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.qa-badge.active{
    background:#dcfce7;
    color:#15803d;
}

.qa-badge.inactive{
    background:#fee2e2;
    color:#dc2626;
}

/* ===========================
   Action Buttons
=========================== */

.qa-action{
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
    font-size:13px;
    margin-right:8px;
}

.qa-action.edit{
    background:#2563eb;
    color:#fff;
}

.qa-action.edit:hover{
    background:#1d4ed8;
}

.qa-action.delete{
    background:#ef4444;
    color:#fff;
}

.qa-action.delete:hover{
    background:#dc2626;
}

/* ===========================
   Modal
=========================== */

.qa-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.qa-modal-content{
    width:450px;
    max-width:90%;
    background:#fff;
    border-radius:12px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.qa-close {
    position: absolute;
    top: 20px;
    right: 20px;   /* Uncomment this */
    left: auto;

    font-size: 30px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.qa-close:hover {
    color: #000;
}

/* ===========================
   Form
=========================== */

.qa-form-group{
    margin-bottom:20px;
}

.qa-form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.qa-form-group input{
    width:100%;
    box-sizing:border-box;
    padding:12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:15px;
}

.qa-form-group input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/* ===========================
   Responsive
=========================== */

@media(max-width:768px){

    .qa-admin-wrapper{
        flex-direction:column;
    }

    .qa-sidebar{
        width:100%;
    }

    .qa-page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .qa-table{
        display:block;
        overflow-x:auto;
    }
}

.qa-form-group select{
    width:100%;
    padding:12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:15px;
    background:#fff;
}

.qa-form-group select:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.spinner {
    width: 35px;
    height: 35px;
    margin: 0 auto 10px;
    border: 4px solid #ddd;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.qa-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.5);
    overflow-y: auto;   /* Allow scrolling */
    padding: 20px;
}

.qa-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;   /* Limit modal height */
    overflow-y: auto;   /* Scroll inside the modal */
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

#card-element{
    padding:14px;
    border:1px solid #dcdcdc;
    border-radius:8px;
    background:#fff;
    min-height:48px;
}

#card-errors{
    color:red;
    margin-top:8px;
    font-size:14px;
}

/* ===========================
   Search
=========================== */

.qa-search-row{

    margin-bottom:30px;

}

.qa-search-box{

    display:flex;
    flex:1;

    align-items:center;

    width:100%;

    background:#fff;

    border:1px solid #E6E6E6;

    border-radius:10px;

    padding:0 15px;
    max-width:420px;

}

.qa-search-box input{

    flex:1;

    border:none;

    outline:none;

    padding:14px;

    font-size:15px;

    background:transparent;

}

/* ===========================
   Business Button
   =========================== */

.qa-add-btn{

    background:#1976F3;

    color:#fff;

    border:none;

    padding:0 30px;

    border-radius:12px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;
        height:56px;
         margin-left:auto;


}

.qa-add-btn:hover{

    background:#1565d8;

}

.qa-card-icon{

width:60px;
    height:60px;

    border-radius:14px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:24px;

}

.qa-card-content{
    display:flex;
    align-items:center;
    gap:16px;
}

.qa-card-content h4{
    margin:0;
    font-size:20px;
    font-weight:500;
    color:#555;
}

.qa-card-content h2{
    margin:0;
    font-size:44px;
    font-weight:700;
}

.qa-card:nth-child(1) .qa-card-icon{
    background:#EEF2FF;
    color:#4F46E5;
}

.qa-card:nth-child(2) .qa-card-icon{
    background:#EAF9EE;
    color:#22C55E;
}

.qa-card:nth-child(3) .qa-card-icon{
    background:#FFF4E5;
    color:#F59E0B;
}
.qa-header-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:25px 0 30px;
    gap:20px;
}

.qa-header-left h1{
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: #111827;
}