/* Custom CSS untuk Binrohim Group */

/* Tambahan styling untuk tema dinamis */
.theme-switcher {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.theme-switcher button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    margin: 2px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.theme-switcher button:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Animasi untuk perubahan tema */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom button styles */
.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Form styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

/* Navigation styling */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer styling */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .theme-switcher {
        position: static;
        transform: none;
        border-radius: 5px;
        margin: 10px 0;
    }
    
    .btn-custom {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Dark theme specific adjustments */
[data-theme="dark"] .navbar {
    background-color: rgba(44, 44, 44, 0.9) !important;
}

[data-theme="dark"] .card {
    background-color: #2c2c2c;
    border-color: #444;
}

[data-theme="dark"] .form-control {
    background-color: #3c3c3c;
    border-color: #444;
    color: #e0e0e0;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.border-custom {
    border: 2px solid var(--primary-color);
} 

/* Override warna ikon navbar-toggler jadi abu-abu */
button.navbar-toggler .navbar-toggler-icon {
  /* ganti stroke SVG ke #6c757d (abu-abu) */
  background-image: url("data:image/svg+xml;charset=utf8,\
%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E\
%3Cpath stroke='%236c757d' stroke-width='2' stroke-linecap='round' \
stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}