html,
body {
    height: 100%;
}

main {
    flex: 1;
}
.content-wrapper{
    flex: 1;
}
aside{
    min-width: 250px;
}
#profilesteps .nav-pills .nav-link {
    border-radius: 0;
    color: #fff;
    background-color: #AE8C37;
    font-size: 14px;
    padding: 20px;
}

#profilesteps .nav-pills .nav-link:hover {
    background: rgba(0, 0, 0, 0.5);
}

#profilesteps .nav-pills .nav-link.active {
    background: rgba(0, 0, 0, 0.05);
    background-color: #43042C;
    border-left: 4px solid #fff;
}

#profile_links .nav-link {
    border-radius: 0;
    color: #fff;
    background-color: #454545;
    font-size: 14px;
    padding: 20px;
}

#profile_links .nav-link:hover {
    background: rgba(0, 0, 0, 0.5);
}

#profile_links .nav-link.active {
    background: rgba(0, 0, 0, 0.05);
    background-color: #b90000;
    border-left: 4px solid #fff;
}


.bg-default {
    border-radius: 50px;
    color: #fff;
    background-color: #454545;
    padding-top: 40px;
    padding-bottom: 40px;

}

.bg-second {
    border-radius: 50px;
    color: #fff;
    background-color: #AE8C37;
    padding-top: 40px;
    padding-bottom: 40px;

}

.btn-default {
    color: #fff;
    background-color: #454545;
    padding:5px;

}

.btn-second {

    color: #fff;
    background-color: #AE8C37;
    padding: 5px;

}

.btn-second:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
  

}

.btn-default:hover {
    color: #fff;
    background-color: #b90000;

}



.bg-default {
    border-radius: 50px;
    color: #fff;
    background-color: #454545;
    padding-top: 40px;
    padding-bottom: 40px;

}

.bg-default:hover {
    background: rgba(0, 0, 0, 0.5);
}



.summary .bg-default {
    border-radius: 10px;
    color: #fff;
    background-color: #454545;
    padding-top: 10px;
    padding-bottom: 10px;

}

.summary .bg-default:hover {
    background: rgba(0, 0, 0, 0.5);
}

.upload-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: #454545;
}

.btn-file {
    position: relative;
}
.btn-file input {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.comment-wrapper {
    flex: 1;
}

.comment-wrapper .dropdown-toggle::after {
    content: none;
}

.title{
    font-size: 30px;
    font-weight: bold;
    color: #95191b;
    margin-left:10px;
    margin-top: 10px;
    vertical-align: middle;
}

.invalid-feedback{
    color: red;
}
.disabled{
    background-color: grey;
}
#profile_links .nav-item {
    margin-top:2px;
    border-bottom: 2px solid #fff;
}

@media print {
    /* Ensure that the div is displayed on a new page */
    .new-page {
        page-break-before: always;
        page-break-inside: avoid;
        text-align: center;
    }

    .new-page img{
        max-height: 90vh;
    }
    .new-page .imgheader{
            text-align: center;
            padding: 10px;
            background-color: black;
            color: #fff;
    }
}

#my-datatable th {
    background-color: #c20000;
    color: white;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}



#my-datatable_filter {
    margin-bottom: 20px; 
    padding: 10px;
}

/* Pagination container spacing */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px !important;
    text-align: center;
}

/* Default buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #404040;
    border-radius: 25px;
    padding: 6px 14px;
    margin: 0 3px;
    color: #fff !important;
    border: none !important;
    transition: all 0.2s ease-in-out;
}

/* Hover state */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #6e6e6e !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Active page */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #b90000 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 0 5px rgba(185,0,0,0.5);
}

/* Disabled buttons (like "…" or unavailable next/prev) */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background: #9e9e9e !important;
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Remove the ugly DataTables outline border */
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    outline: none !important;
    box-shadow: none !important;
}


    .required .form-label::before {
        content: "* ";
        color: red;
    }

    .table-bordered tr{
        border: 1px #000 solid;
    }
    .table-bordered td{
        border: 1px #000 solid;
    }

    .table-bordered th{
        border: 1px #000 solid;
    }


    .stat-card {
    border-radius: 18px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: transform .2s;
}
.stat-card:hover {
    transform: translateY(-5px);
}

/* Colors */
.bg1 { background: #4e73df; }
.bg2 { background: #1cc88a; }
.bg3 { background: #f6c23e; }
.bg4 { background: #e74a3b; }

.stat-card .count {
    font-size: 32px;
    font-weight: bold;
}

/* Profile Image Styling */
.profile-pic {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    margin-right: 15px;
}

/* Student column */
.student-info {
    display: flex;
    align-items: center;
}

.student-details span {
    display: block;
    line-height: 18px;
}

.student-details .name {
    font-size: 22px;
    font-weight: 600;
}

.student-details .meta {
    font-size: 12px;
    color: #555;
}

/* Modern Table */
.table-modern {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.table-modern thead th {
    background: #f8f9fc;
    border: none;
    font-weight: 600;
    padding: 14px;
}

.table-modern tbody tr {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.table-modern tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.table-modern td {
    padding: 16px;
    vertical-align: middle !important;
    border-top: none !important;
}

.table-modern tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-modern tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Container for action buttons */
.action-btn-container {
    display: flex;
    flex-wrap: wrap;      /* allows buttons to move to next line on small screens */
    gap: 6px;             /* space between buttons */
    justify-content: flex-start; /* aligns buttons nicely */
}

/* Container for action buttons */
.action-btn-container {
    display: flex;
    flex-wrap: wrap;      /* allows buttons to go to next line */
    gap: 6px;             /* spacing between buttons */
    justify-content: flex-start;
    
}

/* Action Buttons */
.action-btn {
    padding: 6px 9px;
    border-radius: 8px;
    transition: 0.2s;
    flex: 1 1 auto;       /* allows buttons to shrink and grow */
    min-width: 40px;      /* ensures buttons don't collapse too small */
    text-align: center;
    margin: 2px;            /* use gap instead of margin */
}

/* Icon inside button */
.action-btn i {
    font-size: 16px;
}

/* Hover effect */
.action-btn:hover {
    opacity: 0.7;
}

/* Button colors */
.action-view { background: #d3d3d3; color: #0d6efd; }
.action-edit { background: #e7f3ff; color: #0b5ed7; }
.action-delete { background: #ffe5e7; color: #d00a1f; }
.action-print { background: #9e98a8; color: #351a61; }
.action-card { background: #9e98a8; color: #351a61; }

/* Mobile adjustments */
@media (max-width: 720px) {
    .action-btn {
        flex: 1 1 45%; /* 2 buttons per row on small screens */
        font-size: 14px;
        padding: 5px 6px;
    }

    .action-btn i {
        margin-top: 20px;
    }
}




.nav-tabs .nav-link {
    font-weight: 600;
    padding: 12px 24px;
    color: #555;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    margin: 1px;
}
.nav-tabs .nav-link.active {
    background: #0d6efd;
    color: white !important;
}

.table-modern {
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    width: 100%;
}

.table-modern thead th {
    background: #f5f7fa;
    border: none;
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
}

.table-modern tbody tr {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.table-modern tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table-modern td {
    padding: 16px;
    vertical-align: middle !important;
    border-top: none !important;
}


/* Employee profile */
.employee-box {
    display: flex;
    align-items: center;
}

.employee-img {
    width:60px;height:60px;border-radius:50%;object-fit:cover;margin-right:15px;
}

.employee-info {
    line-height: 1.3;
}

.employee-name {
    font-size: 18px;
    font-weight: 600;
}

.employee-sub {
    font-size: 12px;
    color: #666;
}

thead, tbody, tfoot, tr, td, th {
    border-color: inherit;
    border-style: none;
    border-width: 0;
}

.table-bordered td {
    border: none;
}


/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    background: #e8f0fe;
    color: #0d6efd;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 13px;
}

.role-badge .remove-role {
    color: #dc3545;
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.role-badge .remove-role:hover {
    opacity: 0.8;
}

/* Assign Role Form */
.assign-role select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.assign-role button {
    background-color: #0dcaf0;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.assign-role button:hover {
    background-color: #0bb8db;
}

/* Horizontal Steps Container */
.steps-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

/* Step link */
.steps-horizontal a {
    width: 140px;
    text-align: center;
    background: #f4f4f6;
    border-radius: 10px;
    padding: 15px 10px;
    border: 1px solid #dedede;
    color: #444;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Step Icon */
.steps-horizontal .step-icon i {
    font-size: 22px;
    margin-bottom: 5px;
}

/* Hover effect */
.steps-horizontal a:hover {
    transform: translateY(-3px);
    background: #eeeeee;
}

/* ACTIVE Step */
.steps-horizontal a.active {
    background: #b90000 !important;
    border-color: #b90000;
    color: #fff !important;
}

/* COMPLETED Step */
.steps-horizontal a.completed {
    background: #daf7da;
    border-color: #6ac16a;
    color: #0a5f0a;
}

.steps-horizontal a.completed .step-icon i {
    color: #0a5f0a;
}

/* DISABLED Step */
.steps-horizontal a.disabled {
    background: #f1f1f1;
    border-color: #ddd;
    color: #9b9b9b;
    pointer-events: none;
    opacity: 0.6;
}

/* Step text wrapping for small screens */
.steps-horizontal .step-text {
    font-size: 13px;
    line-height: 1.2;
}

a{
    text-decoration: none;
}