.app-branding {
    height: 66px !important;
}

.app-branding .logo-icon {
    width: 50px !important;
    height: 50px !important;
}

.form-control {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    height: 50px;
}

.form-control:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

textarea.form-control {
    height: auto;
}

.search-btn {
    padding: .6rem 1rem;
}

.btn.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    transition: 0.3s;
    color: #fff;
}

.btn.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.btn.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    transition: 0.3s;
    color: #fff;
}

.btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    transition: 0.3s;
    color: #fff;
}

.btn.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.btn.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    transition: 0.3s;
    color: #fff;
}

.btn.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    transition: 0.3s;
    color: #fff;
}

.btn.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    transition: 0.3s;
    color: #fff;
}

.btn.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.form-control.search-input {
    height: 2.5rem;
}

.app-login .auth-background-holder {
    background: url("/assets/images/background/background-1.jpg") no-repeat center center;
    background-size: cover;
    position: relative;
}

.auth-background-mask {
    background: linear-gradient(135deg, rgba(0, 128, 96, 0.6), rgba(0, 0, 0, 0.4));
    position: absolute;
    width: 100%;
    height: 100%;
}

.app-auth-body {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    width: 500px !important;
}

.auth-heading {
    font-weight: 600;
    font-size: 26px;
}

.auth-form.form-control {
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #15a362;
    box-shadow: 0 0 0 3px rgba(21, 163, 98, 0.15);
}

.app-btn-primary {
    border-radius: 10px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #15a362, #0d8a52);
    border: none;
}

.app-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 163, 98, 0.3);
}


.app-auth-footer {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .app-auth-body {
        padding: 20px;
    }
}

.inline-block {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.custom-card-header {
    background: linear-gradient(135deg, #15a362, #0d8a52);
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
}

.modern-search .form-control {
    border-radius: 8px 0 0 8px;
    border: none;
    height: 2.5rem;
}

.modern-search .btn {
    border-radius: 0;
}

.modern-search .btn:last-child {
    border-radius: 0 8px 8px 0;
}

.modern-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: #fff;
    padding-right: 10px;
}

.modern-modal {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    padding: 18px 22px;
    border-bottom: none;
}

.modern-modal .modal-title {
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.modern-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modern-modal .modal-body {
    padding: 25px;
    background: #f9fafb;
}

.modern-modal .modal-footer {
    border-top: none;
    padding: 18px 22px;
    background: #fff;
}

.modern-modal .btn-danger {
    border-radius: 10px;
}



@keyframes modalFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.table-responsive {
    padding: 10px;
}

.table td {
    vertical-align: middle;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.status-badge.success {
    background: rgb(22 163 74 / 30%);
    color: #078d38;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.2);
}

.status-badge.danger {
    background: rgb(241 68 68 / 30%);
    color: #ab2424;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
}

.status-badge.warning {
    background: rgb(245 158 11 / 30%);
    color: #b45309;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.2);
}

.status-badge.info {
    background: rgb(59 130 246 / 30%);
    color: #2563eb;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.2);
}

.status-badge.primary {
    background: rgb(99 102 241 / 30%);
    color: #4f46e5;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.2);
}

.status-badge.secondary {
    background: rgb(107 114 128 / 30%);
    color: #4b5563;
    box-shadow: 0 0 6px rgba(107, 114, 128, 0.2);
}

.custom-badge {
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.custom-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.custom-badge:active {
    transform: scale(0.95);
}

.custom-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: 0.3s;
}

.custom-badge:active::after {
    opacity: 1;
    transform: scale(1.2);
}

.app-auth-wrapper .app-logo .logo-icon {
    width: 120px !important;
    height: 120px !important;
}

.form-container {
    padding: 0 25px;
}


.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 80px;
}

.password-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.password-actions span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #64748b;
}

.password-actions span:hover {
    background: #0ea5a4;
    color: #fff;
    transform: scale(1.05);
}

.password-actions span:active {
    transform: scale(0.9);
}

.form-control.is-invalid.has-buttons {
    background-position: right 6.75rem center;
}

.password-actions.has-error {
    top: 33%;
}

.custom-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-tabs .nav-link.active {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.custom-tabs .nav-link:hover {
    background: #f1f3f7;
    color: #000;
}

.tab-content {
    background: #f9fafc;
    border-radius: 10px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.info-box {
    background: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-box p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.modern-search select {
    padding: 9px;
}

.bg-success-light {
    background: linear-gradient(270deg, #5cb3777a, #5cb37724);
}

.bg-warning-light {
    background: linear-gradient(270deg, #eebf417a, #eebf4124);
}

.bg-danger-light {
    background: linear-gradient(270deg, #d26d697a, #d26d6924);
}

.bg-primary-light {
    background: linear-gradient(270deg, #2563eb7a, #2563eb24);
}

.border-primary {
    border-color: rgba(37, 99, 235, 1) !important;
}

.bg-primary {
    background-color: rgba(37, 99, 235, 1) !important;
}

.text-primary {
    color: rgba(37, 99, 235, 1) !important;
}

.text-dark {
    color: #000000 !important;
}

.pull-right {
    float: right !important;
}

.image-preview-box {
    width: 100%;
    height: 100%;
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
}

.image-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-input-wrapper {
    position: relative;
    height: 120px;
    border: 2px dashed #e0e6ed;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-input-wrapper:hover {
    border-color: #3b71ca;
    background: #f0f4fb;
}

.custom-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-input-placeholder {
    text-align: center;
    color: #6c757d;
}

.file-input-placeholder i {
    font-size: 2rem;
    color: #3b71ca;
}

.file-input-wrapper.is-invalid {
    border: 2px dashed #ff0000;
}

.profile-photo-upload-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #727272;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-photo-upload-box:hover {
    border-color: #3b71ca;
    background: #f0f4fb;
}

.profile-photo-upload-box .custom-file-input {
    width: 200px;
    height: 200px;
}

.attendance-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.attendance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}


.bg-light {
    background-color: #f8f9fa !important;
}

.outline-warning {
    background-color: #d977061f !important;
    border: 1.5px solid #d97706 !important;
}

.outline-danger {
    background-color: #dc26261f !important;
    border: 1.5px solid #dc2626 !important;
}

.outline-success {
    background-color: #15803c1f !important;
    border: 1.5px solid #15803d !important;
}

.outline-primary {
    background-color: #2563eb1f !important;
    border: 1.5px solid #2563eb !important;
}

.permission-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.permission-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.permission-card .card-header {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: none;
    background: linear-gradient(135deg, #f8f9fa, #eef1f5);
}

.permission-card .card-body {
    padding: 18px;
}

.permission-badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    background: #f8f9fa;
    color: #383c40;
    border: 1px solid #e4e6ea;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.permission-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.permission-badge:active {
    transform: scale(0.95);
}

.permission-badge.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.permission-badge.active i {
    animation: pop 0.2s ease;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.permission-badge i {
    font-size: 12px;
}

.permission-badge input {
    display: none;
}

.form-control.is-invalid.has-button {
    background-position: right 3.75rem center;
}

.app-branding {
    padding-left: .5rem !important;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: 0.3s;
}

.user-avatar img:hover {
    transform: scale(1.05);
}

.modern-dropdown {
    width: 240px;
    border-radius: 14px;
    padding: 10px 0;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    animation: dropdownFade 0.2s ease-in-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 12px;
}

.dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.modern-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modern-dropdown .dropdown-item:hover {
    background: #f3f4f6;
    padding-left: 20px;
}

.dropdown-divider {
    margin: 8px 0;
}

.small {
    font-size: 12px;
}

.cursor-pointer {
    cursor: pointer !important;
}

#editAttendanceModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    background-color: #f8f9fa;
}

#editAttendanceModal .student-edit-card {
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px;
}

#editAttendanceModal .student-edit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#editAttendanceModal .status-group .btn-check+.btn {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 4px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    background-color: #fff;
    color: #6c757d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#editAttendanceModal .btn-outline-success {
    border-color: #198754 !important;
    color: #198754 !important;
}

#editAttendanceModal .btn-outline-warning {
    border-color: #f39c12 !important;
    color: #d35400 !important;
}

#editAttendanceModal .btn-outline-danger {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

#editAttendanceModal .btn-outline-primary {
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

#editAttendanceModal .status-group .btn-check+.btn {
    cursor: pointer !important;
    transition: all 0.2s ease-in-out;
}

#editAttendanceModal .btn-check:checked+.btn-outline-success {
    background-color: #198754 !important;
    color: #fff !important;
    border-color: #198754 !important;
}

#editAttendanceModal .btn-check:checked+.btn-outline-warning {
    background-color: #f39c12 !important;
    color: #fff !important;
    border-color: #f39c12 !important;
}

#editAttendanceModal .btn-check:checked+.btn-outline-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

#editAttendanceModal .btn-check:checked+.btn-outline-primary {
    background-color: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}

#editAttendanceModal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 20px;
}

#editAttendanceModal.student-edit-card {
    border: 1px solid #dee2e6 !important;
    border-radius: 10px;
}
