﻿html, body {
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background-color: #FFF6F6;
    color: #FF7979;
}

h1, h2, h3, h4, h5, h6 {
    color: #FF7979;
}

.main-content, main {
    height: 100%;
}

main {
    margin: auto;
    color: #FF7979;
    width: 90%;
}

/* Header background blur and transparency */
header.fixed-top {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: background 0.3s cubic-bezier(.4,0,.2,1);
}

/* Desktop Navbar Styles - Enhanced with better blur integration */
.navbar {
    gap: 30px;
    width: 100%;
    margin: 1.5rem 2rem 1.5rem 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-menu {
    background: rgba(252, 202, 192, 0.9) !important;
    padding: 10px 30px;
    border-radius: 30px;
    border: solid 1px rgba(255, 77, 77, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-profile {
    border: solid 2px;
    border-color: #FFDCD4;
}

.navbar-logo {
    height: 100%;
}

/* Navbar link hover animation - improved */
.navbar-nav .nav-link {
    border-radius: 24px;
    transition: background 0.25s cubic-bezier(.4,0,.2,1), color 0.2s, border-radius 0.25s cubic-bezier(.4,0,.2,1), transform 0.2s;
    padding: 0.5rem 1.25rem;
    color: #FF7979 !important;
    font-weight: bold;
    text-decoration: none;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(255, 121, 121, 0.9) !important;
        color: #fff !important;
        border-radius: 24px;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 121, 121, 0.3);
    }

/* Fix nav-link colors - Legacy support */
.nav-item a.nav-link {
    color: #FF7979 !important;
    font-weight: bold;
    text-decoration: none;
}

    .nav-item a.nav-link:hover {
        color: #fff !important;
        text-decoration: none;
        background-color: #FF7979;
        border-radius: 30px;
        padding: 8px 16px;
    }

.navbar.bg-body-tertiary {
    gap: 30px;
    width: 100%;
    margin: 1.5rem 2rem 1.5rem 1.5rem;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Fix primary button colors */
.btn-primary {
    color: #fff !important;
    background-color: #FF7979 !important;
    border-color: #FF7979 !important;
}

    .btn-primary:hover {
        color: #fff !important;
        background-color: #e73b3b !important;
        border-color: #e73b3b !important;
    }

    .btn-primary:focus,
    .btn-primary.focus {
        color: #fff !important;
        background-color: #e73b3b !important;
        border-color: #e73b3b !important;
        box-shadow: 0 0 0 0.2rem rgba(255, 121, 121, 0.5) !important;
    }

    .btn-primary:not(:disabled):not(.disabled):active,
    .btn-primary:not(:disabled):not(.disabled).active {
        color: #fff !important;
        background-color: #e73b3b !important;
        border-color: #e73b3b !important;
    }

/* Fix text-primary color */
.text-primary {
    color: #FF7979 !important;
}

/* Cookas custom navbar styles */
.cookas-navbar {
    max-width: 950px;
    background-color: #ffecec !important;
    border-radius: 50px !important;
    padding: 0.3rem 1.5rem;
}

    .cookas-navbar .nav-link {
        font-weight: 500;
        color: #e87b7b !important;
    }

        .cookas-navbar .nav-link.active,
        .cookas-navbar .nav-link:hover {
            color: #ff4d4d !important;
            background-color: #FF7979;
            border-radius: 30px;
        }

/* Mobile Navbar Styles with blur */
.mobile-navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    background: rgba(252, 202, 192, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.mobile-nav-collapsed {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(252, 202, 192, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 15px 15px 0;
    padding: 10px 5px;
    box-shadow: 2px 0 10px rgba(255, 121, 121, 0.2);
    min-height: 100vh;
    width: 60px;
}

.mobile-nav-expanded {
    background: rgba(252, 202, 192, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 20px 20px 0;
    padding: 15px;
    box-shadow: 3px 0 15px rgba(255, 121, 121, 0.3);
    min-height: 100vh;
    width: 280px;
}

.nav-toggle-btn {
    background: #FF7979;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 121, 121, 0.3);
}

    .nav-toggle-btn:hover {
        background: #e73b3b;
        transform: scale(1.05);
    }

.nav-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

    .nav-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        color: #FF7979;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 18px;
    }

        .nav-icons a:hover {
            background: #FF7979;
            color: white;
            transform: translateX(5px);
        }

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 121, 121, 0.2);
}

.profile-section .navbar-profile {
    border: 2px solid #FFDCD4;
    transition: all 0.2s ease;
}

    .profile-section .navbar-profile:hover {
        border-color: #FF7979;
        transform: scale(1.05);
    }

.logo-section img {
    filter: drop-shadow(2px 2px 4px rgba(255, 121, 121, 0.2));
}

.nav-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #FF7979 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .nav-menu-item:hover {
        background: #FF7979;
        color: white;
        transform: translateX(5px);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(255, 121, 121, 0.3);
    }

    .nav-menu-item i {
        margin-right: 12px;
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

/* Search bar styles */
.search-bar input {
    background-color: #fff;
    font-size: 0.9rem;
}

    .search-bar input:focus {
        box-shadow: none;
    }

/* Form controls */
.form-select.form-select-sm {
    background-color: #FFE5E0; /* pastel background */
    border: 1px solid #FF7979; /* border pink */
    color: #FF7979; /* text color pink */
    border-radius: 12px; /* rounded */
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 1.75rem 0.25rem 0.75rem;
    appearance: none; /* hide default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FF7979' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592c.86 0 1.319 1.013.753 1.658l-4.796 5.482a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

    .form-select.form-select-sm:focus {
        border-color: #e73b3b;
        box-shadow: 0 0 0 0.2rem rgba(255, 121, 121, 0.25);
        outline: none;
    }

/* Modal styles */
.modal-content {
    background-color: #FFF6F6;
}

.modal-header, .modal-footer {
    border-color: #FCCAC0;
}

.modal-title {
    font-weight: bold;
    color: #FF7979 !important;
}

/* Utility classes */
.error-text {
    color: #e73b3b;
}

.datepicker {
    z-index: 2000 !important; /* biar muncul di atas modal */
}

input[type="radio" i] {
    border: 1px solid #ced4da !important;
}

input, select {
    color: #FF7979 !important;
}

.select2-container .select2-selection--single {
    height: 40px;
}

.select2-container .select2-selection__rendered {
    line-height: 40px !important;
    color: #FF7979 !important;
}

.select2-container .select2-selection__arrow {
    height: 40px !important;
}

.table {
    color: inherit;
}

.accordion-item .collapse {
    visibility: visible !important;
}

    .accordion-item .collapse:not(.show) {
        display: none;
    }

.ui-autocomplete {
    background-color: #FFF6F6;
    z-index: 1056 !important; /* Lebih tinggi dari Bootstrap modal (z-index: 1055) */
}

.ui-helper-hidden-accessible {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Notification styles */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px 15px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    animation: slideInRight 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

    .custom-notification::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }

    .custom-notification.success {
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
    }

        .custom-notification.success::before {
            background: #28a745;
            content: '✓';
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

    .custom-notification.error {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
    }

        .custom-notification.error::before {
            background: #dc3545;
            content: '✕';
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

    .custom-notification.warning {
        background-color: #fff3cd;
        border: 1px solid #ffeaa7;
        color: #856404;
    }

        .custom-notification.warning::before {
            background: #ffc107;
            content: '!';
            display: flex;
            align-items: center;
            justify-content: center;
            color: #212529;
            font-size: 14px;
            font-weight: bold;
        }

    .custom-notification.info {
        background-color: #d1ecf1;
        border: 1px solid #bee5eb;
        color: #0c5460;
    }

        .custom-notification.info::before {
            background: #17a2b8;
            content: 'i';
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

    .custom-notification .close-btn {
        position: absolute;
        top: 8px;
        right: 10px;
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

        .custom-notification .close-btn:hover {
            opacity: 1;
        }



.custom-notification.fade-out {
    animation: slideOutRight 0.3s ease;
}

/* Container untuk multiple notifications */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

    .notifications-container .custom-notification {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 10px;
    }

/* Profile Dropdown Styles */
.navbar-profile:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 180px;
}

.dropdown-header {
    color: #FF7979 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #FF7979 !important;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        transform: translateX(2px);
    }

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

        .dropdown-item.text-danger:hover {
            background-color: #fff5f5;
            color: #dc3545 !important;
        }

.dropdown-divider {
    margin: 0.3rem 0;
    opacity: 0.3;
}

/* Animations */


/* Navbar Spacer - Dynamic height based on screen size */
.navbar-spacer {
    height: 95px;
}



/* Modal Half Size */
.modal-dialog.modal-half {
    max-width: 50%;
    width: 50%;
}


/* Enhanced Modal Styles for Half Size */
.modal-half .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-half .modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: 2px solid #FCCAC0;
}

.modal-half .modal-body {
    padding: 1.5rem;
}

.modal-half .modal-footer {
    border-top: 2px solid #FCCAC0;
    border-radius: 0 0 15px 15px;
}

/* Button Loading Styles */
.btn-loading {
    pointer-events: none;
    opacity: 0.65;
    position: relative;
}

    .btn-loading .spinner-border {
        width: 1rem;
        height: 1rem;
        border-width: 0.125em;
    }

.btn-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
}

.datepicker-controls svg, .datepicker-controls button, .datepicker-cell {
    color: #FF7979 !important;
}