/* =========================================
   INAD SCHOOL SYSTEM - PLUGIN STYLES
   ========================================= */

/* --- Wrapper & Layout --- */
.inad-dash-wrapper, 
.inad-form-wrapper {
    max-width: 1600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    border: 1px solid #eee;
}

/* --- Header Section --- */
.inad-dash-header, 
.inad-form-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 15px;
}

.inad-dash-header h2, 
.inad-form-top h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

/* --- Buttons --- */
.inad-btn-primary {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.inad-btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.inad-btn-sec {
    background-color: #f8f9fa;
    color: #333;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.inad-back-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
}

/* --- Small Action Buttons --- */
.inad-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    color: white !important;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    margin-right: 5px;
}
.inad-btn-small.edit { background-color: #28a745; }
.inad-btn-small.delete { background-color: #dc3545; }

/* --- Table Styles --- */
.inad-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.inad-table th, 
.inad-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.inad-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #555;
}
.inad-table img {
    border-radius: 4px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* --- Form Fields --- */
.inad-group {
    margin-bottom: 25px;
}
.inad-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}
.inad-group input[type="text"],
.inad-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box; /* Fix width issues */
}

/* --- Skills Box Area --- */
.inad-skill-box {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.add-skill-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
/* --- Skill Box Updates --- */
.skill-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding-right: 8px; /* Cross icon ke liye space */
    transition: 0.2s;
}
.skill-wrapper:hover {
    border-color: #000;
    background: #f9f9f9;
}
.skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    flex: 1; /* Pura space lega */
    border: none; /* Purana border hataya */
}
.inad-del-skill {
    color: #ccc;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}
.inad-del-skill:hover {
    color: #dc3545; /* Red color on hover */
}

/* --- Messages --- */
.inad-msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}
.inad-msg.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.inad-msg.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.inad-error {
    color: red;
    text-align: center;
    padding: 20px;
}
/* --- PDF Button in Table --- */
.inad-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #fce8e6; /* Light Red bg */
    color: #d32f2f; /* Dark Red text */
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #fadbd8;
    transition: 0.2s;
}
.inad-pdf-btn:hover {
    background-color: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* Student Registration pages */
/* --- OFFICIAL FORM STYLES --- */
.inad-official-form {
    border-top: 5px solid #000; /* Official header line */
}

/* Sections */
.inad-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}
.inad-section:last-child { border-bottom: none; }

.inad-sec-title {
    font-size: 16px;
    text-transform: uppercase;
    color: #444;
    background: #f4f4f4;
    padding: 8px 15px;
    border-left: 4px solid #e44d26;
    margin-bottom: 20px;
}

/* Grids for Compactness */
.inad-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inad-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.inad-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 15px; }

/* Upload Boxes */
.inad-upload-box {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background: #fdfdfd;
    border-radius: 4px;
}
.inad-upload-box label { font-size: 12px; margin-bottom: 5px; }
.preview-area { min-height: 40px; margin-bottom: 5px; }

/* Course Toggle */
.inad-course-toggle {
    margin-bottom: 20px;
    background: #eee;
    padding: 10px;
    display: inline-block;
    border-radius: 20px;
}
.inad-course-toggle label {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .inad-grid-2, .inad-grid-3, .inad-grid-4 { grid-template-columns: 1fr; gap: 10px; }
}



/* all sudents page table css  */

/* --- STUDENT TABLE STYLES --- */

.inad-table-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 40px auto;
    max-width: 1600px;
}

/* DataTables Overrides */
table.dataTable thead th {
    background-color: #333;
    color: #fff;
    padding: 12px 10px;
    font-weight: 500;
    border-bottom: none !important;
}

table.dataTable tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

table.dataTable.row-border tbody th, 
table.dataTable.row-border tbody td, 
table.dataTable.display tbody th, 
table.dataTable.display tbody td {
    border-top: none;
}

/* Status Badges */
.inad-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}
.inad-badge.green { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.inad-badge.orange { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.inad-badge.gray { background: #eee; color: #555; }

/* Course Cell (Truncate long names) */
.inad-course-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #444;
}

/* Action Buttons */
.inad-action-btns {
    display: flex;
    gap: 5px;
}
.inad-btn-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
}
.inad-btn-icon.view { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }
.inad-btn-icon.view:hover { background: #1976d2; color: #fff; }

.inad-btn-icon.cert { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }
.inad-btn-icon.cert:hover { background: #7b1fa2; color: #fff; }

/* Responsive Search & Select Box */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    margin-left: 5px;
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
    margin: 0 5px;
}



/* single student page css */


/* --- STUDENT PROFILE VIEW STYLES --- */

.inad-profile-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 1. Header Card */
.inad-profile-header {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-left: 6px solid #e44d26; /* Brand Color */
}
.inad-header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}
.inad-profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%; /* Circle Image */
    object-fit: cover;
    border: 4px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.inad-header-info h1 {
    margin: 0;
    font-size: 28px;
    color: #333;
    line-height: 1.2;
}
.inad-enroll-id {
    font-family: monospace;
    font-size: 18px;
    color: #666;
    margin: 5px 0 10px;
    letter-spacing: 1px;
}
.inad-header-badges {
    display: flex;
    gap: 10px;
}

/* 2. Grid Layout */
.inad-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* 3. Cards */
.inad-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    border: 1px solid #f5f5f5;
}
.inad-card.full-width {
    grid-column: 1 / -1; /* Full width row */
}
.inad-card h3 {
    margin: 0 0 20px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #000;
}
.inad-sub-head {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Info Rows */
.inad-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 5px;
}
.inad-info-row.full { flex-direction: column; gap: 5px; }
.inad-info-row span { color: #666; }
.inad-info-row strong { color: #333; text-align: right; }

/* Fee Box */
.inad-fee-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}
.inad-fee-box div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}
.inad-fee-box .total {
    border-top: 1px solid #ddd;
    padding-top: 5px;
    font-weight: bold;
    font-size: 16px;
    color: #e44d26;
    margin-top: 5px;
}

/* Skills Text */
.inad-skills-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
}

/* Documents Grid */
.inad-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.inad-doc-item {
    text-align: center;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}
.inad-doc-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-3px); }
.inad-doc-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 5px;
}
.doc-label { font-size: 13px; font-weight: 600; color: #555; display: block; }

/* Badges Large */
.inad-badge-lg {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}
.inad-badge-lg.green { background: #28a745; }
.inad-badge-lg.orange { background: #fd7e14; }
.inad-badge-lg.gray { background: #6c757d; }

/* Print Styles */
@media print {
    .inad-btn-primary, .inad-btn-sec, .inad-header-right { display: none; }
    .inad-profile-wrapper { box-shadow: none; margin: 0; }
    .inad-profile-grid { display: block; }
    .inad-card { margin-bottom: 20px; page-break-inside: avoid; border: 1px solid #000; }
}
/* Responsive Mobile */
@media (max-width: 768px) {
    .inad-profile-header { flex-direction: column; text-align: center; gap: 20px; }
    .inad-header-left { flex-direction: column; }
    .inad-header-badges { justify-content: center; }
}