.cgai-container{
    padding:20px;
}

.cgai-card{
    background:#ffffff;
    border-radius:18px;
    padding:30px;
    max-width:1100px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.cgai-header{
    margin-bottom:30px;
}

.cgai-header h1{
    margin:0;
    font-size:32px;
    font-weight:700;
    color:#111827;
}

.cgai-header p{
    margin-top:8px;
    color:#6b7280;
    font-size:15px;
}

.cgai-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.cgai-form-group{
    display:flex;
    flex-direction:column;
}

.cgai-form-group label{
    margin-bottom:10px;
    font-size:14px;
    font-weight:600;
    color:#374151;
}

.cgai-form-group input,
.cgai-form-group select{
    height:50px;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:0 15px;
    font-size:15px;
    background:#f9fafb;
    transition:0.3s;
}

.cgai-form-group input:focus,
.cgai-form-group select:focus{
    border-color:#4f46e5;
    box-shadow:0 0 0 4px rgba(79,70,229,0.15);
    outline:none;
    background:#ffffff;
}

.cgai-form-group input[type="file"]{
    padding:12px;
    height:auto;
}

.cgai-btn-area{
    margin-top:35px;
}

.cgai-btn-area button{
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    color:#ffffff;
    border:none;
    padding:14px 28px;
    border-radius:12px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.cgai-btn-area button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(79,70,229,0.25);
}

/* =========================================
   STUDENT LIST PREMIUM DESIGN
========================================= */

.cgai-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.cgai-topbar h1{
    margin:0;
    font-size:32px;
    font-weight:700;
    color:#111827;
}

.cgai-topbar p{
    margin-top:8px;
    color:#6b7280;
    font-size:15px;
}

.cgai-search-box{
    position:relative;
}

.cgai-search-box input{
    width:340px;
    height:52px;
    border:none;
    border-radius:14px;
    background:#f3f4f6;
    padding:0 20px;
    font-size:15px;
    color:#111827;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    transition:0.3s;
}

.cgai-search-box input:focus{
    outline:none;
    background:#ffffff;
    box-shadow:0 0 0 4px rgba(79,70,229,0.15);
}

/* =========================================
   TABLE CARD
========================================= */

.cgai-table-wrapper{
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,0.06);
}

.cgai-table-responsive{
    overflow-x:auto;
}

/* =========================================
   TABLE
========================================= */

.cgai-table{
    width:100%;
    border-collapse:collapse;
    min-width:1000px;
}

.cgai-table thead{
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
}

.cgai-table thead th{
    padding:18px;
    color:#ffffff;
    font-size:14px;
    font-weight:600;
    text-align:left;
    letter-spacing:0.5px;
}

.cgai-table tbody tr{
    transition:0.3s;
    border-bottom:1px solid #f1f5f9;
}

.cgai-table tbody tr:hover{
    background:#f9fafb;
}

.cgai-table tbody td{
    padding:18px;
    vertical-align:middle;
    color:#374151;
    font-size:14px;
}

/* =========================================
   PHOTO
========================================= */

.cgai-student-photo{
    width:55px;
    height:55px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #e5e7eb;
}

/* =========================================
   COURSE BADGE
========================================= */

.cgai-course-badge{
    display:inline-block;
    padding:8px 14px;
    border-radius:50px;
    background:#ede9fe;
    color:#5b21b6;
    font-size:13px;
    font-weight:600;
}

/* =========================================
   ACTION BUTTONS
========================================= */

.cgai-action-btns{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.cgai-action-btns a{
    text-decoration:none;
}

.cgai-view-btn,
.cgai-edit-btn,
.cgai-delete-btn{
    border:none;
    padding:10px 14px;
    border-radius:10px;
    color:#ffffff;
    cursor:pointer;
    font-size:13px;
    font-weight:600;
    transition:0.3s;
}

.cgai-view-btn{
    background:#2563eb;
}

.cgai-edit-btn{
    background:#059669;
}

.cgai-delete-btn{
    background:#dc2626;
}

.cgai-view-btn:hover,
.cgai-edit-btn:hover,
.cgai-delete-btn:hover{
    transform:translateY(-2px);
    opacity:0.95;
}

/* =========================================
   EMPTY DATA
========================================= */

.cgai-no-data{
    text-align:center;
    padding:50px !important;
    color:#6b7280;
    font-size:16px;
}

/* ====================================
   MODAL POPUP
==================================== */

.cgai-modal{
    display:none;
    position:fixed;
    z-index:999999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(4px);
    overflow:auto;
}

.cgai-modal-content{
    background:#ffffff;
    margin:50px auto;
    width:95%;
    max-width:700px;
    border-radius:20px;
    padding:30px;
    position:relative;
    animation:cgaiModal 0.3s ease;
}

@keyframes cgaiModal{

    from{
        transform:translateY(-30px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

.cgai-close{
    position:absolute;
    right:20px;
    top:15px;
    font-size:28px;
    cursor:pointer;
    color:#6b7280;
}

.cgai-close:hover{
    color:#111827;
}

.cgai-modal-photo{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:20px;
    border:4px solid #e5e7eb;
}

.cgai-modal-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.cgai-modal-item{
    background:#f9fafb;
    padding:16px;
    border-radius:12px;
}

.cgai-modal-item strong{
    display:block;
    margin-bottom:8px;
    color:#111827;
}

.cgai-modal-item span{
    color:#6b7280;
}

@media(max-width:768px){

    .cgai-modal-grid{
        grid-template-columns:1fr;
    }

}

/* ====================================
   CERTIFICATE PAGE
==================================== */

.cgai-date-field,
.cgai-grade-select{

    width:100%;
    height:45px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 12px;
    background:#f9fafb;
    font-size:14px;
}

.cgai-date-field:focus,
.cgai-grade-select:focus{

    outline:none;
    border-color:#4f46e5;
    box-shadow:0 0 0 4px rgba(79,70,229,0.15);

}

/* =========================================
   PREMIUM CERTIFICATE VERIFICATION
========================================= */

.cgai-verify-container{
    max-width:1100px;
    margin:60px auto;
    padding:20px;
}

.cgai-verify-card{
    background:#ffffff;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.08);
}

/* =========================================
   TOP HEADER
========================================= */

.cgai-verify-header{
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    padding:60px 40px;
    text-align:center;
    color:#ffffff;
}

.cgai-verify-header h1{
    margin:0;
    font-size:42px;
    font-weight:800;
}

.cgai-verify-header p{
    margin-top:14px;
    font-size:16px;
    opacity:0.9;
}

/* =========================================
   SEARCH AREA
========================================= */

.cgai-verify-body{
    padding:40px;
}

.cgai-verify-search{
    display:flex;
    gap:15px;
    align-items:center;
    margin-bottom:35px;
    flex-wrap:wrap;
}

.cgai-verify-search input{
    flex:1;
    height:60px;
    border:none;
    background:#f3f4f6;
    border-radius:18px;
    padding:0 22px;
    font-size:16px;
    color:#111827;
    transition:0.3s;
    min-width:250px;
}

.cgai-verify-search input:focus{
    outline:none;
    background:#ffffff;
    box-shadow:0 0 0 4px rgba(79,70,229,0.15);
}

.cgai-verify-search button{
    height:60px;
    border:none;
    padding:0 35px;
    border-radius:18px;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    color:#ffffff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:0.3s;
}

.cgai-verify-search button:hover{
    transform:translateY(-2px);
    opacity:0.95;
}

/* =========================================
   VERIFIED BOX
========================================= */

.cgai-verified-box{
    background:#f0fdf4;
    border:2px solid #bbf7d0;
    border-radius:24px;
    padding:35px;
}

.cgai-verified-top{
    display:flex;
    align-items:center;
    gap:25px;
    margin-bottom:35px;
    flex-wrap:wrap;
}

.cgai-verify-photo{
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:24px;
    border:6px solid #dcfce7;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.cgai-verified-info h2{
    margin:0;
    font-size:32px;
    color:#111827;
}

.cgai-verified-info p{
    margin-top:10px;
    color:#16a34a;
    font-size:16px;
    font-weight:600;
}

/* =========================================
   DETAILS GRID
========================================= */

.cgai-verify-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.cgai-verify-item{
    background:#ffffff;
    border-radius:18px;
    padding:22px;
    box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.cgai-verify-item strong{
    display:block;
    margin-bottom:10px;
    color:#111827;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.cgai-verify-item span{
    color:#4b5563;
    font-size:17px;
    font-weight:600;
}

/* =========================================
   CERTIFICATE BADGE
========================================= */

.cgai-certificate-badge{
    display:inline-block;
    background:#ede9fe;
    color:#5b21b6;
    padding:10px 16px;
    border-radius:50px;
    font-size:14px;
    font-weight:700;
}

/* =========================================
   INVALID BOX
========================================= */

.cgai-invalid-box{
    margin-top:30px;
    background:#fef2f2;
    border:2px solid #fecaca;
    padding:25px;
    border-radius:20px;
    text-align:center;
}

.cgai-invalid-box h3{
    margin:0;
    color:#dc2626;
    font-size:24px;
}

.cgai-invalid-box p{
    margin-top:10px;
    color:#991b1b;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:768px){

    .cgai-verify-header{
        padding:45px 20px;
    }

    .cgai-verify-header h1{
        font-size:30px;
    }

    .cgai-verify-body{
        padding:25px;
    }

    .cgai-verify-search{
        flex-direction:column;
    }

    .cgai-verify-search input,
    .cgai-verify-search button{
        width:100%;
    }

    .cgai-verified-top{
        flex-direction:column;
        text-align:center;
    }

    .cgai-verify-grid{
        grid-template-columns:1fr;
    }

    .cgai-verify-photo{
        width:130px;
        height:130px;
    }

}
/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .cgai-topbar{
        flex-direction:column;
        align-items:stretch;
    }

    .cgai-search-box input{
        width:100%;
    }

}

@media(max-width:768px){

    .cgai-card{
        padding:20px;
    }

    .cgai-header h1{
        font-size:26px;
    }

}