/* new css file
 */
/* Shared TechAcad UI */
.techacad-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 12px 0 18px;
}

.techacad-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.techacad-muted { color: #666; }

.techacad-card {
    border: 1px solid #e6edf4;
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
}

.techacad-card-title {
    margin: 0 0 10px;
}

.techacad-section-title {
    margin-top: 22px;
}

.techacad-meta {
    line-height: 1.4;
}

/*my teaching assigments*/
.techacad-teaching-selector {
    margin-bottom: 20px; 
    
}
.techacad-teaching-selector select { 
    min-width: min(100%, 520px); 
    
}

.techacad-teaching-students input[type="number"] { 
    width:95px; 
    
}
.techacad-teaching-students select { 
    min-width:170px;
    
}
.techacad-attendance-table {
    min-width:1450px;
}
.techacad-attendance-table th, .techacad-attendance-table td {
    text-align:center; 
    min-width:58px; 
}
.techacad-sticky-col { 
    position:sticky; 
    left:0; z-index:2;
    background:#fff; 
    min-width:210px !important;
    text-align:left !important; 
    
}
.techacad-attendance-cell {
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid #ccd8df;
    cursor:pointer;
    font-weight:800; 
    
}
.techacad-attendance-cell.status-present { 
    background:#d1cf5a;
}
.techacad-attendance-cell.status-absent {
    background:#bf2d3b;
}
.techacad-attendance-cell.status-justified {
    background:#fcd262;
}
#techacad-attendance-modal label { 
    display:block; 
    margin-bottom:14px; 
}
#techacad-attendance-modal select,
#techacad-attendance-modal textarea,
#techacad-attendance-modal input[type="file"] { width:100%; margin-top:6px; }
@media (max-width: 767px) {
    .techacad-teaching-students { min-width:850px; }
}

/* Tables */
.techacad-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.techacad-table th {
    text-align: center;
    background: #495057;
    color: #fff;
}

.techacad-table th,
.techacad-table td {
    vertical-align: middle;
    padding: 10px;
}

.techacad-table tr:nth-child(even) {
    background-color: #e6edf4;
}

.techacad-table tr:hover {
    background-color: #bac7d680;
}

.techacad-table-shell {
    border: 1px solid #303030;
    border-radius: 15px;
    overflow: visible !important;
}

.techacad-table-shell .techacad-table {
    border: 0;
    border-radius: 15px;
    overflow: visible !important;
}

.techacad-table,
.techacad-table tbody,
.techacad-table tr,
.techacad-table td,
.techacad-actions-cell {
    overflow: visible !important;
}

[data-techacad-ajax-page],
.techacad-ajax-target,
.techacad-manage-users,
.techacad-table-shell,
.techacad-menu-wrap {
    overflow: visible !important;
}

.techacad-actions-col,
.techacad-actions-cell {
    position: relative;
    overflow: visible !important;
}

.techacad-menu-wrap {
    z-index: 10;
}

.techacad-menu-wrap:has(.techacad-menu-panel.is-open) {
    z-index: 1000000;
}

.techacad-table-shell .techacad-table th:first-child {
    border-top-left-radius: 15px;
}

.techacad-table-shell .techacad-table th:last-child {
    border-top-right-radius: 15px;
}

.techacad-table-shell .techacad-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.techacad-table-shell .techacad-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

/* Forms */
.techacad-grid {
    display: grid;
    gap: 10px;
}

.techacad-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.techacad-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.techacad-grid-gap-top {
    margin-top: 10px;
}

.techacad-input {
    width: 100%;
}

.techacad-form-actions {
    margin: 12px 0 0;
}

.techacad-helper-text {
    margin: 8px 0 0;
}

.techacad-full-row {
    flex-basis: 100%;
}

.techacad-inline-fields,
.techacad-employee-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.techacad-employee-fields {
    display: none;
    margin-top: 10px;
}

.techacad-checkbox-row {
    padding-top: 22px;
}

.techacad-reason {
    width: 260px;
    max-width: 100%;
}

/* Buttons */
.techacad-btn {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    margin-top: 10px;
}

.techacad-btn:hover {
    cursor: pointer !important;
}

.techacad-btn-primary:hover,
.techacad-btn-primary:focus,
.techacad-btn-approve:hover,
.techacad-btn-approve:focus {
    background: #d1cf5a;
    border-color: #d1cf5a;
    color: #1d2327;
}

.techacad-btn-danger:hover,
.techacad-btn-danger:focus,
.techacad-btn-reject:hover,
.techacad-btn-reject:focus {
    background: #f7881b;
    border-color: #f7881b;
    color: #fff;
}

.techacad-disabled-button {
    opacity: .55;
    cursor: not-allowed;
}

#techacad-confirm-yes{
	background:#495057;
}
#techacad-confirm-no{
	background:#495057;
}
#techacad-confirm-yes:hover{
	background:#d1cf5a;
	color:#303030;
}
#techacad-confirm-no:hover{
	background:#91c8e4;
	color:#303030;
}

/* Pills */
.techacad-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #ccc;
}

.techacad-pill-approved {
    background: #d1cf5a;
    border-color: #d1cf5a;
    color: #303030;
}

.techacad-pill-pending {
    background: #fcd262;
    border-color: #fcd262;
    color: #303030;
}

.techacad-pill-rejected {
    background: #f7881b;
    border-color: #f7881b;
    color: #fff;
}

/* Actions */
.techacad-actions-cell {
    position: relative;
    white-space: nowrap;
}

.techacad-action-form {
    display: inline-block;
}

.techacad-action-form-delete {
    margin-left: 6px;
}

.techacad-action-form-approve {
    margin-right: 6px;
}

/* Icons */
.techacad-icon {
    width: 18px;
    height: 18px;
    display: block;
    color: currentColor;
    fill: currentColor;
}

.techacad-icon-dots {
    color: inherit;
}

/* Menu */
.techacad-menu-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.techacad-icon-menu-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #ccd0d4;
    border-radius: 999px;
    background: #fff;
    color: #303030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.techacad-icon-menu-button svg {
    pointer-events: none;
}

.techacad-icon-menu-button:hover,
.techacad-icon-menu-button:focus {
    border-color: #bac7d6;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    outline: none;
}

.techacad-icon-menu-button[aria-expanded="true"] {
    background: #495057;
    border-color: #495057;
    color: #fff;
}

.techacad-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: auto;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    padding: 6px;
    z-index: 999999;
    animation: techacadMenuIn .14s ease-out;
}

.techacad-menu-panel.is-open {
    display: block !important;
}

.techacad-menu-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 13px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #d8dee4;
    border-top: 1px solid #d8dee4;
    transform: rotate(45deg);
}

.techacad-menu-form {
    margin: 0 !important;
}

.techacad-menu-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #303030;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
    padding: 10px 11px;
    border-radius: 9px;
    cursor: pointer;
    line-height: 1.3;
}

.techacad-menu-item:hover,
.techacad-menu-item:focus {
    background: #b9e6f7;
    color: #303030;
    outline: none;
}

.techacad-menu-item-danger {
    color: #b42318;
}

.techacad-menu-item-danger:hover,
.techacad-menu-item-danger:focus {
    background: #f7881b;
    color: #fff;
}

.techacad-menu-item-icon {
    width: 18px;
    text-align: center;
}

@keyframes techacadMenuIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Toasts */
.techacad-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.techacad-toast {
    min-width: 340px;
    max-width: 460px;
    background: #303030;
    color: #303030;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    line-height: 1.4;
    animation: techacadToastIn .2s ease-out;
}

.techacad-toast-success {
    background: #b9e6f7;
    border-left: 10px solid #d1cf5a;
}

.techacad-toast-error {
    background: #b9e6f7;
    border-left: 10px solid #f7881b;
}

.techacad-toast.is-leaving {
    animation: techacadToastOut .25s ease-in forwards;
}

@keyframes techacadToastIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes techacadToastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(16px);
    }
}

/* Modal */
.techacad-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.techacad-modal {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.techacad-modal h3 {
    margin: 0 0 10px;
}

.techacad-modal p {
    margin: 0 0 14px;
}

.techacad-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#techacad-confirm-message {
    text-align: center;
    line-height: 1.5;
    margin-bottom: 40px;
    white-space: pre-line;
}

.techacad-confirm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.techacad-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.techacad-confirm-header h3 {
    color: #f7881b;
    margin: 0;
    text-align: center;
}

/* Tabs */
.techacad-tab {
    background: #fff;
    border-color: #ccd0d4;
    color: #303030;
}

.techacad-tab:hover,
.techacad-tab:focus {
    background: #b9e6f7;
    border-color: #b9e6f7;
    color: #303030;
}

.techacad-tab-active,
.techacad-tab-active:hover,
.techacad-tab-active:focus {
    background: #303030 !important;
    border-color: #303030 !important;
    color: #fff !important;
}

/* Utility */
.techacad-is-hidden {
    display: none;
}

/* My Courses */
.techacad-my-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.techacad-my-course-card {
    position: relative;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(48,48,48,.08);
    overflow: hidden;
}

.techacad-my-course-card-header {
    position: relative;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #e6edf4;
}

.techacad-my-course-title {
    margin: 0;
    padding-right: 90px;
    line-height: 1.3;
    color: #303030;
}

.techacad-my-course-ribbon {
    position: absolute;
    top: 14px;
    right: 0;
    background: #495057;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px 0 0 999px;
    font-weight: 700;
}

.techacad-my-course-card-body {
    padding: 16px 18px 18px;
}

.techacad-my-course-subtitle {
    margin: 0 0 12px;
    color: #495057;
    letter-spacing: .03em;
}

.techacad-my-course-list {
    display: grid;
    gap: 10px;
}

.techacad-my-course-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    align-items: start;
}

.techacad-my-course-icon,
.techacad-my-course-icon.dashicons {
    width: 24px;
    height: 24px;
    text-align: center;
    font-size: 18px;
    line-height: 24px;
    color: #303030;
}

.techacad-my-course-schedule {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e6edf4;
}

.techacad-my-course-schedule div {
    display: flex;
    flex-direction: column;
}

.techacad-my-course-schedule strong {
    margin-bottom: 4px;
    color: #495057;
    letter-spacing: .04em;
}

.techacad-my-course-schedule span {
    color: #303030;
    font-weight: 500;
}

.techacad-my-course-unenrol-form {
    margin-top: 16px;
}
.techacad-btn-unenroll{
	background: #f7881b !important;
}

.techacad-btn-unenroll:hover{
	background: #bf2d3b !important;
}

@media (max-width: 1024px) {
    .techacad-my-courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .techacad-my-courses-grid,
    .techacad-grid-2,
    .techacad-grid-3,
    .techacad-my-course-schedule {
        grid-template-columns: 1fr;
    }
}

/*User management*/
.techacad-users-table td {
    vertical-align: top;
}

.techacad-user-edit-modal-content {
    max-width: 760px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.techacad-user-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.techacad-user-edit-grid input,
.techacad-user-edit-grid select {
    width: 100%;
}

.techacad-user-role-fieldset {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #d9dee3;
    border-radius: 10px;
}

.techacad-user-role-fieldset legend {
    padding: 0 6px;
    font-weight: 700;
}

.techacad-copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 16px 0;
}

.techacad-copy-field input {
    width: 100%;
}

@media (max-width: 700px) {
    .techacad-user-edit-grid {
        grid-template-columns: 1fr;
    }

    .techacad-copy-field {
        grid-template-columns: 1fr;
    }
}