.secured-form {
    display: none;
}

/* Toast Notification Styles */
.toastr-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.toastr {
    position: relative;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastr-slide-in 0.3s ease-out;
    cursor: pointer;
    overflow: hidden;
}

.toastr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.8);
}

.toastr.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.toastr.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.toastr.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.toastr.info {
    background: linear-gradient(135deg, #17a2b8, #007bff);
}

.toastr-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.toastr-message {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
}

.toastr-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toastr-close:hover {
    opacity: 1;
}

.toastr-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    animation: toastr-progress 3s linear;
}

@keyframes toastr-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes toastr-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes toastr-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Light sidebar general styling */
.main-sidebar {
    background-color: #f4f4f4 !important;
    border-right: 2px solid #3c8dbc !important;
}

/* Sidebar menu text color for light theme */
.nav-sidebar .nav-link {
    color: #333 !important;
}

/* Active menu styling */
.nav-sidebar .nav-link.active {
    background-color: #3c8dbc !important;
    color: white !important;
    border-left: 4px solid #2c7aa8 !important;
    font-weight: 600 !important;
    border-radius: 0 25px 25px 0 !important;
    margin-right: 10px !important;
}

/* Hover effect for menu items */
.nav-sidebar .nav-link:hover {
    background-color: rgba(60, 141, 188, 0.1) !important;
    color: #3c8dbc !important;
    border-radius: 0 15px 15px 0 !important;
    margin-right: 10px !important;
}

/* Active submenu styling */
.nav-treeview .nav-link.active {
    background-color: #3c8dbc !important;
    color: white !important;
    border-left: 4px solid #2c7aa8 !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    font-weight: 600 !important;
    border-radius: 0 20px 20px 0 !important;
}

/* Submenu hover effect */
.nav-treeview .nav-link:hover {
    background-color: rgba(60, 141, 188, 0.1) !important;
    color: #3c8dbc !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    border-radius: 0 15px 15px 0 !important;
}

/* Open menu indicator */
.nav-item.menu-open>.nav-link {
    background-color: rgba(60, 141, 188, 0.15) !important;
    color: #3c8dbc !important;
    font-weight: 500 !important;
}

/* Brand link styling - same as navbar color */
.brand-link {
    background-color: #3c8dbc !important;
    border-bottom: 2px solid #2c7aa8 !important;
    color: white !important;
}

.brand-text {
    color: white !important;
    font-weight: 700 !important;
}

/* Brand image styling for better visibility on blue background */
.brand-image {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* User panel styling for light theme */
.user-panel {
    border-bottom: 1px solid #dee2e6 !important;
}

.user-panel .info a {
    color: #3c8dbc !important;
    font-weight: 500 !important;
}

/* Sidebar background */
.sidebar {
    background-color: #f4f4f4 !important;
}

/* Menu icons color */
.nav-sidebar .nav-icon {
    color: #6c757d !important;
}

.nav-sidebar .nav-link.active .nav-icon {
    color: white !important;
}

.nav-sidebar .nav-link:hover .nav-icon {
    color: #3c8dbc !important;
}

/* Image Upload Preview Styles */
.image-upload-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.image-upload-preview {
    width: 100%;
    height: 210px;
    aspect-ratio: 4/6;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.image-upload-preview:hover {
    border-color: #3c8dbc;
    background-color: #f0f8ff;
    box-shadow: 0 2px 8px rgba(60, 141, 188, 0.2);
}

.image-upload-preview.has-image {
    border-style: solid;
    border-color: #28a745;
    background-color: transparent;
}

.image-upload-preview.has-image:hover {
    border-color: #1e7e34;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.image-upload-placeholder {
    text-align: center;
    color: #6c757d;
    transition: color 0.3s ease;
}

.image-upload-preview:hover .image-upload-placeholder {
    color: #3c8dbc;
}

.image-upload-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.image-upload-placeholder .upload-text {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.image-upload-placeholder .upload-hint {
    font-size: 0.75rem;
    opacity: 0.8;
}

.image-upload-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.image-upload-preview.has-image:hover .image-upload-overlay {
    opacity: 1;
}

.image-upload-overlay-text {
    color: white;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.image-upload-overlay-text i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

.image-upload-input {
    display: none;
}

.image-upload-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.image-upload-info {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .image-upload-placeholder i {
        font-size: 2rem;
    }

    .image-upload-placeholder .upload-text {
        font-size: 0.8rem;
    }

    .image-upload-placeholder .upload-hint {
        font-size: 0.7rem;
    }
}

/* Custom styling untuk weekend (Sabtu-Minggu) */
.fc-day-sat,
.fc-day-sun {
    background-color: #ffebee !important;
}

.fc-daygrid-day.fc-day-sat .fc-daygrid-day-number,
.fc-daygrid-day.fc-day-sun .fc-daygrid-day-number {
    color: #d32f2f !important;
    font-weight: bold !important;
}

/* Untuk view minggu */
.fc-col-header-cell.fc-day-sat,
.fc-col-header-cell.fc-day-sun {
    background-color: #ffcdd2 !important;
}

.fc-col-header-cell.fc-day-sat .fc-col-header-cell-cushion,
.fc-col-header-cell.fc-day-sun .fc-col-header-cell-cushion {
    color: #d32f2f !important;
    font-weight: bold !important;
}

/* Untuk day grid body di weekend */
.fc-daygrid-body .fc-day-sat,
.fc-daygrid-body .fc-day-sun {
    background-color: #ffebee !important;
}

/* Hover effect untuk weekend */
.fc-day-sat:hover,
.fc-day-sun:hover {
    background-color: #ffcdd2 !important;
}

.fc-event {
    cursor: pointer;
    border-radius: 3px;
}

.fc-event:hover {
    opacity: 0.8;
}

.fc-toolbar {
    margin-bottom: 1rem;
}

.fc-button-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.fc-button-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.fc-daygrid-event {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-event-title {
    font-weight: 500;
}

/* Custom holiday styling */
.fc-event.holiday-event {
    border-left: 4px solid;
}

/* Form styling */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.text-danger {
    color: #dc3545 !important;
}

/* Modal styling */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: #495057;
    font-weight: 600;
}

/* Custom context menu styling */
.custom-context-menu {
    min-width: 120px;
    padding: 5px 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.custom-context-menu .dropdown-item {
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.custom-context-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

.custom-context-menu .dropdown-item i {
    margin-right: 8px;
    width: 14px;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    padding: 1rem;
    color: #333;
    text-align: left;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #e3f2fd;
    color: #1976d2;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231976d2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1.25rem;
    background-color: #fff;
    line-height: 1.6;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-collapse {
    border-top: 1px solid #dee2e6;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    padding: 1rem;
    color: #333;
    text-align: left;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #e3f2fd;
    color: #1976d2;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231976d2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1.25rem;
    background-color: #fff;
    line-height: 1.6;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-collapse {
    border-top: 1px solid #dee2e6;
}

/* Survey Styles */
#surveyForm .card {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

#surveyForm .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#surveyForm .form-check {
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem !important;
}

#surveyForm .form-check:hover {
    background-color: #f8f9fa;
}

#surveyForm .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

#surveyForm .form-check-input:checked+.form-check-label {
    color: #28a745;
    font-weight: 500;
}

#surveyForm .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.badge {
    font-size: 0.75em;
}

/* Two-column layout for survey answers */
#surveyForm .card-body .row {
    margin: 0;
}

#surveyForm .card-body .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (max-width: 768px) {
    #surveyForm .card-body .col-md-6 {
        margin-bottom: 1rem;
    }

    #surveyForm .card-body .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* ====== STYLES FROM BASE.HTML ====== */

/* Spinner Overlay */
#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1060;
}

.spinner-container {
    text-align: center;
}

/* Navigation Badge */
.nav-item .badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25em 0.4em;
    border-radius: 50%;
    background-color: red;
    color: white;
}

.nav-item {
    position: relative;
    margin-right: 20px;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    width: 350px;
    position: relative;
}

.dropdown-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 10;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.dropdown-body {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-footer {
    border-top: 1px solid #ddd;
    padding: 10px;
    background-color: #ffffff;
}

/* Notification Styles */
.notification-content h6,
.notification-content p {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    hyphens: auto;
}

.notification-content {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.notification-link:hover {
    background-color: #f8f9fa;
}

/* ====== DASHBOARD INFO-BOX STYLES ====== */

/* Custom info-box layout for dashboard statistics */
.dashboard-info-box {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}



/* Dashboard info-box icon */
.dashboard-info-box .info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.dashboard-info-box .info-box-icon i {
    font-size: 24px;
}

/* Dashboard info-box content */
.dashboard-info-box .info-box-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    width: 100%;
}

.dashboard-info-box .info-box-text {
    font-size: 14px !important;
    margin-bottom: 0;
    display: inline-block;
    white-space: nowrap;
}

.dashboard-info-box .info-box-number {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1;
    display: inline-block !important;
    margin-left: auto;
}