:root {
    --primary-color: #20c997;
    --primary-dark: #1aa085;
    --primary-light: #4dd4aa;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --glass-blur: 10px; /* Variabel baru untuk efek blur */
    --gradient-angle: 135deg; /* Variabel untuk sudut gradient */
}

/* Background animasi blur gradient */
body {
    background: linear-gradient(var(--gradient-angle), #a1fdde, #c2e9fb, #f6d2e0, #a1c4fd);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    min-height: 100vh; /* Pastikan background mengisi seluruh tinggi viewport */
    display: flex;
    flex-direction: column;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Override Bootstrap primary color */
.btn-primary {
    background: linear-gradient(var(--gradient-angle), var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none; /* Hilangkan border bawaan */
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3); /* Tambahkan shadow */
    transition: all 0.3s ease;
    position: relative; /* Penting untuk pseudo-element efek cahaya */
    overflow: hidden; /* Penting agar cahaya tidak keluar dari tombol */
    z-index: 1; /* Pastikan tombol di atas pseudo-element */
}



.btn-primary:hover {
    background: linear-gradient(var(--gradient-angle), var(--primary-dark) 0%, #178a70 100%); /* Gradient saat hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(32, 201, 151, 0.4);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

/* Efek cahaya memukau saat tombol ditekan */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
    z-index: -1; /* Pastikan di belakang teks tombol */
}

.btn-primary:active::after {
    width: 200%; /* Ukuran cahaya saat aktif */
    height: 200%;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0.4s ease-out; /* Reset width/height transition untuk efek instan */
}


.bg-primary {
    background: linear-gradient(var(--gradient-angle), var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Dashboard Styles */
.bg-gradient-primary {
    background: linear-gradient(var(--gradient-angle), var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Efek Glass Blur untuk elemen-elemen utama */
.navbar,
.card,
.alert {
    background-color: rgba(255, 255, 255, 0) !important; /* Sedikit transparan */
    backdrop-filter: blur(var(--glass-blur)); /* Efek glass blur */
    -webkit-backdrop-filter: blur(var(--glass-blur)); /* Untuk kompatibilitas Safari */
    border: 0px solid rgba(255, 255, 255, 0.2); /* Border tipis transparan */
    border-radius: 15px; /* Pastikan rounded corners */
    box-shadow: none !important; /* Shadow yang lebih dalam */
    transition: all 0.3s ease;
}

.navbar {
    box-shadow:none;
}

.card {
    border: none; /* Hilangkan border bawaan */
    border-radius: 10px !important; /* Lebih rounded */
    box-shadow: none !important; /* Shadow yang lebih menonjol */
    transition: all 0.3s ease;
    overflow: hidden; /* Penting untuk efek glass blur di dalam card */
    background: rgba(255, 8, 8, 0) !important;
}

h4, h5, form-label{
    color: #155724 !important;
}

.card-header {
    border-radius: 20px 20px 0 0 !important; /* Sesuaikan dengan card border-radius */
    border-bottom: none;
    padding: 1.5rem;
    background: none !important;
    color: white !important; /* Pastikan teks tetap putih */
}

.welcome-card {
    border-radius: 25px; /* Lebih rounded lagi */
    animation: fadeInUp 0.8s ease-out;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.welcome-icon i {
    font-size: 4rem;
    background: linear-gradient(var(--gradient-angle), var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333; /* Warna teks lebih solid */
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.welcome-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    background: linear-gradient(var(--gradient-angle), var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.start-btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    transition: all 0.3s ease;
    background: linear-gradient(var(--gradient-angle), var(--primary-color) 0%, var(--primary-dark) 0%,  #05201a 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(32, 201, 151, 0.4);
    background: linear-gradient(var(--gradient-angle), var(--primary-dark) 0%, #0d765d 100%);
}

/* Menu Styles */
.menu-icon i {
    font-size: 3rem;
    background: linear-gradient(var(--gradient-angle), var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounceIn 1s ease-out;
}

.menu-card {
    border: none;
    border-radius: 20px; /* Lebih rounded */
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.menu-card-icon i {
    font-size: 3rem;
    background: linear-gradient(var(--gradient-angle), var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.menu-card:hover .menu-card-icon i {
    transform: scale(1.1);
    background: linear-gradient(var(--gradient-angle), var(--primary-dark), #178a70);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.296) !important; /* Sedikit transparan */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Border transparan */
    border-radius: 5px; /* Rounded corners */
    color: #333; /* Warna teks input */
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.6); /* Warna placeholder */
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25),
                0 0 15px rgba(32, 201, 151, 0.5); /* Tambah shadow kedua untuk efek glow */
    background-color: rgba(255, 255, 255, 0.3); /* Lebih transparan saat fokus */
}

.form-label {
    font-weight: 600;
    color: #333; /* Warna teks label */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Sedikit shadow pada teks label */
}

.form-label i {
    color: var(--primary-color);
}

/* Signature Pad Styles */
.signature-pad-container {
    border: 2px dashed rgba(32, 201, 151, 0.5); /* Border dashed transparan */
    border-radius: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1); /* Background lebih transparan */
    backdrop-filter: blur(5px); /* Sedikit blur untuk container */
    -webkit-backdrop-filter: blur(5px);
}

.signature-pad {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* Background pad lebih solid */
    cursor: crosshair;
    width: 100%;
    max-width: 600px;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 15px;
    animation: slideInDown 0.5s ease-out;
    background-color: rgba(255, 255, 255, 0.2) !important; /* Transparan */
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.alert-success {
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.5rem;
    }

    .menu-card {
        margin-bottom: 1rem;
    }

    .signature-pad {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 1.75rem;
    }

    .welcome-subtitle {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1.5rem;
        background: rgba(174, 23, 23, 0) !important;
        box-shadow:none;
        outline: none;
        border:none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(32, 201, 151, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.form-control, .form-select {
    transition: all 0.3s ease;
}

.navbar {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* Track transparan */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gradient-angle), var(--primary-color), var(--primary-dark)); /* Gradient pada thumb */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--gradient-angle), var(--primary-dark), #178a70);
}

/* Tambahan untuk memastikan min-vh-100 berfungsi dengan baik */
.min-vh-100 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container.py-5 {
    flex-grow: 1; /* Agar konten mengisi sisa ruang */
    background-color: none !important;
    background: none !important;
}



























