/* ===================================
   Tabungan Qurban An-Nur - Frontend
=================================== */

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

.tqa-dashboard{
    max-width:800px;
    margin:30px auto;
    padding:25px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.tqa-login{
    max-width:420px;
    margin:30px auto;
    padding:30px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

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

.tqa-login input{
    width:100%;
    margin-top:5px;
    box-sizing:border-box;
}

.tqa-login button{
    background:#0073aa;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:6px;
    cursor:pointer;
}

.tqa-login button:hover{
    background:#005177;
}

/* ==========================
   Card
========================== */

.tqa-card{
    background:#f8f9fa;
    border-left:5px solid #28a745;
    padding:15px 20px;
    margin-bottom:20px;
    border-radius:10px;
}

.tqa-card h3,
.tqa-card h4{
    margin:0 0 10px;
}

.tqa-card p{
    margin:0;
}

/* ==========================
   Progress
========================== */

.tqa-progress{
    width:100%;
    max-width:400px;
    height:22px;
    background:#e5e5e5;
    border-radius:20px;
    overflow:hidden;
    margin:10px 0;
}

.tqa-progress-bar{
    height:100%;
    background:linear-gradient(90deg,#28a745,#4cd964);
    transition:width .4s ease;
}

/* ==========================
   Menu
========================== */

.tqa-menu{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
    margin:20px 0;
}

.tqa-btn,
.tqa-btn:link,
.tqa-btn:visited{
    display:block;
    width:100%;
    padding:12px 15px;
    background:#2271b1;
    color:#fff !important;
    text-align:center;
    text-decoration:none !important;
    border-radius:6px;
    font-weight:600;
    box-sizing:border-box;
    transition:.2s;
}

.tqa-btn:hover,
.tqa-btn:focus{
    background:#135e96;
    color:#fff !important;
    text-decoration:none !important;
}

.tqa-btn.active{
    background:#135e96;
}

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

.tqa-badge{
    display:inline-block;
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
}

.tqa-badge-success{
    background:#d4edda;
    color:#155724;
}

.tqa-badge-warning{
    background:#fff3cd;
    color:#856404;
}

.tqa-badge-danger{
    background:#f8d7da;
    color:#721c24;
}

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

.tqa-dashboard table.tqa-table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
    font-size:14px !important;
}

.tqa-dashboard table.tqa-table th{
    padding:10px 8px;
    vertical-align:middle;
    font-size:14px !important;
    font-weight:600;
    line-height:1.4;
}

.tqa-dashboard table.tqa-table td{
    padding:10px 8px;
    vertical-align:middle;
    font-size:14px !important;
    line-height:1.4;
    white-space:nowrap;
}

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

@media (max-width:768px){

    .tqa-dashboard{
        margin:15px;
        padding:18px;
    }

    .tqa-login{
        margin:15px;
        padding:20px;
    }

    .tqa-menu{
        grid-template-columns:1fr;
    }

    .tqa-btn{
        font-size:14px;
    }

    .tqa-progress{
        max-width:100%;
    }

.tqa-dashboard table.tqa-table{
    font-size:12px !important;
}

.tqa-dashboard table.tqa-table th,
.tqa-dashboard table.tqa-table td{
    padding:5px 4px;
    font-size:12px !important;
}

    .tqa-badge{
        font-size:10px;
        padding:2px 6px;
    }

}
/* Paksa font khusus tabel */
body .entry-content .tqa-dashboard table.tqa-table,
body .entry-content .tqa-dashboard table.tqa-table th,
body .entry-content .tqa-dashboard table.tqa-table td{
    font-family: Arial !important;
}
/* ==========================
   Upload File
========================== */

.tqa-dashboard input[type="file"]{
    width:100%;
    max-width:450px;
    color:#374151;
}

.tqa-dashboard input[type="file"]::file-selector-button{
    appearance:none;
    -webkit-appearance:none;

    background:#2271b1 !important;
    color:#fff !important;

    border:0 !important;
    border-radius:8px;

    padding:10px 18px;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    margin-right:12px;

    transition:.25s;
}

.tqa-dashboard input[type="file"]::file-selector-button:hover{
    background:#135e96 !important;
}