/* =========================
   DASHBOARD
========================= */
@media (max-width:600px){
    .wrap div[style*="flex:1 1 220px"]{
        flex:1 1 100%;
    }
}

/* =========================
   ADMIN TABLE
========================= */
.cbt-admin-table {
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
    font-size:15px;
}
.cbt-admin-table th {
    background:#007bff;
    color:white;
    padding:12px;
    text-align:left;
    border-bottom:3px solid #005fcc;
}
.cbt-admin-table td {
    padding:10px;
    border-bottom:1px solid #e0e0e0;
}
.cbt-admin-table tr:hover td {
    background:#f2f7ff;
}

/* Buttons */
.cbt-btn {
    display:inline-block;
    padding:6px 12px;
    border-radius:6px;
    font-weight:600;
    font-size:13px;
    text-decoration:none !important;
    margin-right:6px;
}
.cbt-btn.blue { background:#007bff; color:#fff !important; }
.cbt-btn.orange { background:#ff9800; color:#fff !important; }
.cbt-btn.red { background:#dc3545; color:#fff !important; }

/* =========================
   FRONTEND EXAM START
========================= */
.cbt-exam-start {
    display:flex;
    gap:20px;
    background:#fff;
    border:1px solid #ccc;
    border-radius:8px;
    padding:20px;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
    max-width:900px;
    margin:20px auto;
}
.cbt-exam-left { flex:3; }
.cbt-exam-right {
    flex:1;
    background:#f9f9f9;
    border-left:1px solid #ddd;
    border-radius:8px;
    padding:10px;
    max-height:450px;
    overflow-y:auto;
}
.cbt-exam-start h2 {
    font-size:20px;
    margin-bottom:10px;
    text-align:center;
}
.cbt-exam-start p {
    font-size:14px;
    line-height:1.5;
    text-align:center;
}
.cbt-exam-start strong { color:#0073aa; }

/* Question list */
.cbt-question-list {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    justify-content:center;
}
.cbt-question-list .q-item {
    width:36px;
    height:36px;
    border-radius:6px;
    background:#eee;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    cursor:pointer;
    transition:.2s;
}
.cbt-question-list .q-item.active {
    background:#0073aa;
    color:#fff;
}
.cbt-question-list .q-item.done {
    background:#27ae60;
    color:#fff;
}
.cbt-question-list .q-item:hover {
    transform:scale(1.1);
}

/* Question radio */
.cbt-q label {
    display:flex;
    align-items:center;
    gap:6px;
    font-size:15px;
    line-height:1.1;
}
.cbt-q input[type="radio"] {
    transform:scale(1.1);
    margin:0;
}
.cbt-q p {
    font-size:18px;
    line-height:1.3;
    margin-bottom:7px;
}

/* =========================
   EXAM LIST
========================= */
.cbt-exam-list-wrapper {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
    gap:18px;
    margin:20px 0;
}
.cbt-exam-card {
    background:linear-gradient(145deg,#fff,#f1f9ff);
    border:1px solid #cce5ff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 5px 12px rgba(0,0,0,.08);
    font-size:15px;
    transition:.2s;
}
.cbt-exam-card:hover {
    transform:translateY(-4px) scale(1.02);
    box-shadow:0 8px 16px rgba(0,0,0,.15);
}
.cbt-exam-card strong {
    color:#0077ff;
    font-size:17px;
    display:block;
    margin-bottom:6px;
}
.cbt-exam-card .cbt-button {
    margin-top:12px;
    background:#0077ff;
    color:#fff !important;
    padding:8px 16px;
    border-radius:8px;
    text-decoration:none;
}
.cbt-exam-card .cbt-button:hover {
    background:#005fcc;
}

/* =========================
   USER RESULT
========================= */
.cbt-result-table {
    width:100%;
    border-collapse:collapse;
    margin-top:12px;
    font-size:15px;
}
.cbt-result-table th {
    background:#007bff;
    color:#fff;
    padding:10px;
    border-bottom:2px solid #005fcc;
}
.cbt-result-table td {
    padding:10px;
    border-bottom:1px solid #ddd;
}
.cbt-result-table tr:hover td {
    background:#f0f7ff;
}


.cbt-dashboard {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cbt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.cbt-table th, .cbt-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: center;
}
.cbt-table th {
  background-color: #0073aa;
  color: #fff;
}
.cbt-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.cbt-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
}
.cbt-button-primary {
  background: #0073aa;
  color: white;
}


.cbt-exam-left{
    flex: 1 1 auto;
    min-width: 0;
}

#cbt-container{
    width:100%;
}

.cbt-q{
    width:100%;
}

.cbt-exam-right{
    width:280px;
    min-width:280px;
    flex-shrink:0;
}
.cbt-exam-start{
    align-items:flex-start;
}

/*
====================================
CERTIFICATE
====================================
*/

.smitacscbt-certificate-page{
    background:#f3f4f6;
    margin:0;
    padding:40px 20px;
}

.smitacscbt-certificate{
    max-width:1000px;
    margin:0 auto;
    background:#ffffff;
    border:8px solid #111827;
    padding:60px 40px;
    text-align:center;
}

.smitacscbt-certificate h1{
    font-size:42px;
    margin-bottom:30px;
}

.smitacscbt-certificate h2{
    font-size:36px;
    margin:20px 0;
}

.smitacscbt-certificate h3{
    font-size:28px;
    margin:20px 0;
}

.smitacscbt-certificate p{
    font-size:18px;
    line-height:1.7;
}

.smitacscbt-certificate-actions{
    margin-top:40px;
}

@media print{

    .no-print{
        display:none !important;
    }

    body{
        margin:0;
        padding:0;
        background:#ffffff;
    }

    .smitacscbt-certificate{
        border-width:5px;
    }
}


.certificate-signature{
    margin-top:40px;
    text-align:right;
}

.certificate-signature img{
    max-height:80px;
    display:block;
    margin-left:auto;
}

.certificate-signature strong{
    display:block;
    margin-top:10px;
}
