/* ============================================================
   DIALMINT - PREMIUM SMOOTH TRANSITIONS & INTERACTIVE STYLING
   ============================================================ */

/* Smooth fade-in for page transitions */
body {
    animation: fadeInPage 0.4s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input glow and transition focus effects */
.form-control, .form-select {
    border: 1px solid #cbd5e1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary, #0056b3) !important;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15) !important;
    outline: none;
}

/* Custom premium hover for cards and panels */
.card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

/* Premium transition button styling */
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}
.btn:active {
    transform: scale(0.98);
}

/* Loading animations */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Floating beautiful alerts */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: opacity 0.35s ease;
}

/* ============================================================
   ANDROID SIDE DRAWER MOBILE MENU
   ============================================================ */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 30px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
}
.nav-drawer.open {
    transform: translateX(0);
}
.nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}
.nav-drawer-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--primary-dark, #003d80), var(--primary, #0056b3));
    color: white;
    position: relative;
    border-bottom-right-radius: 20px;
}
.nav-drawer-header .brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.nav-drawer-header .brand-name span {
    color: var(--secondary, #ff6b00);
}
.nav-drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.nav-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}
.nav-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 14px;
}
.nav-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}
.nav-drawer-link:hover {
    background: #f1f5f9;
    color: var(--primary, #0056b3);
}
.nav-drawer-link i {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: color 0.2s;
}
.nav-drawer-link:hover i {
    color: var(--primary, #0056b3);
}
.nav-drawer-link.active {
    background: #eff6ff;
    color: var(--primary, #0056b3);
    font-weight: 600;
}
.nav-drawer-link.active i {
    color: var(--primary, #0056b3);
}

/* --- Autocomplete Dropdown Styles --- */
.autocomplete-dropdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.autocomplete-dropdown .list-group-item {
    color: #334155;
    background: transparent;
    border: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.autocomplete-dropdown .list-group-item:hover {
    background-color: #f1f5f9;
    color: var(--primary, #0056b3);
}
