
/* === Alpine.js x-cloak === */
[x-cloak] {
    display: none !important;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Sidebar Scrollbar */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.bounce-soft {
    animation: bounce-soft 2s ease-in-out infinite;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* === Card Effects === */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* === Glass Effect === */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* === Gradient Backgrounds === */
.gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
}
.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.gradient-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.gradient-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* === Shimmer Loading === */
.shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* === Dot Indicator === */
.dot-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulse-soft 1.5s ease-in-out infinite;
}

/* === Custom Checkbox === */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.custom-checkbox:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* === Custom Toggle === */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-switch.active {
    background: #4f46e5;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle-switch.active::after {
    right: 22px;
}

/* === Badge Dot === */
.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}

/* Login Hero Side (admin auth) */
.auth-hero-orb {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}

.auth-hero-orb--lg {
    width: 18rem;
    height: 18rem;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(48px);
}

.auth-hero-orb--md {
    width: 24rem;
    height: 24rem;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(48px);
}

.auth-hero-shell {
    width: 8rem;
    height: 8rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-hero-copy {
    color: #e0e7ff;
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 500;
}
.badge-dot-success::before { background: #10b981; }
.badge-dot-warning::before { background: #f59e0b; }
.badge-dot-danger::before { background: #ef4444; }
.badge-dot-info::before { background: #06b6d4; }

/* === Sidebar Active Indicator === */
.nav-active {
    position: relative;
}
.nav-active::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #818cf8;
    border-radius: 3px 0 0 3px;
}

/* === Print Styles === */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
    body { background: white !important; }
}

/* === Selection Color === */
::selection {
    background: #c7d2fe;
    color: #312e81;
}

/* === Focus Styles === */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* === Table Styles === */
.table-striped tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* === Notification Badge Animation === */
.notification-badge {
    animation: bounce-soft 2s ease-in-out infinite;
}

/* === Chat Bubble === */
.chat-bubble-sent {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 16px 16px 4px 16px;
}
.chat-bubble-received {
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 16px 16px 16px 4px;
}

/* === Calendar Day === */
.calendar-day {
    transition: all 0.2s ease;
}
.calendar-day:hover {
    background: #eef2ff;
    border-radius: 8px;
}
.calendar-day.today {
    background: #4f46e5;
    color: white;
    border-radius: 8px;
}
.calendar-day.has-event::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #4f46e5;
    border-radius: 50%;
    display: block;
    margin: 2px auto 0;
}
.calendar-day.today.has-event::after {
    background: white;
}

/* === Progress Bar Animation === */
.progress-bar-animated {
    animation: shimmer 2s linear infinite;
    background-size: 200% 100%;
}

/* === File Icon Colors === */
.file-pdf { color: #ef4444; }
.file-doc { color: #3b82f6; }
.file-xls { color: #10b981; }
.file-img { color: #f59e0b; }
.file-zip { color: #8b5cf6; }
.file-folder { color: #f59e0b; }

/* === Dark Mode Support === */
.dark body {
    background-color: #0f172a;
}
.dark .card {
    background-color: #1e293b;
    border-color: #334155;
}

/* === Page Preloader === */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    animation: toastSlideIn 0.4s ease;
}
.toast-success { background: #059669; color: white; }
.toast-error { background: #dc2626; color: white; }
.toast-warning { background: #d97706; color: white; }
.toast-info { background: #2563eb; color: white; }
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(1rem) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === Loading Skeleton === */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease infinite;
    border-radius: 0.5rem;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Tooltip === */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 0.75rem;
    background: #1e293b;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 0.5rem;
}
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* === Smooth Page Transitions === */
.page-enter { animation: pageEnter 0.4s ease both; }
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Status Dot Pulse === */
.status-online { position: relative; }
.status-online::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* === Better Focus Styles (Accessibility) === */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* === Print Styles === */
@media print {
    .sidebar, header, .preloader, .toast-container { display: none !important; }
    main { margin: 0 !important; padding: 0 !important; }
    body { background: white !important; }
}

/* === Dark Mode Scrollbar Enhancement === */
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* === Dark Mode Selection === */
.dark ::selection {
    background: #4f46e5;
    color: white;
}

/* === Dark Mode Preloader === */
.dark .preloader {
    background: #0f172a;
}
.dark .preloader-spinner {
    border-color: #334155;
    border-top-color: #6366f1;
}

/* === Dark Mode Toast === */
.dark .toast-container {
    left: 1.5rem;
}

/* === Dark Mode Table === */
.dark .table-striped tbody tr:nth-child(even) {
    background-color: #1e293b;
}

/* === Dark Mode Calendar === */
.dark .calendar-day:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* === Dark Mode Chat === */
.dark .chat-bubble-received {
    background: #1e293b;
    color: #f1f5f9;
}

/* === Dark Mode Focus Styles === */
.dark input:focus, .dark select:focus, .dark textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* === Dark Mode Focus Visible === */
.dark *:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
}

/* === Dark Mode Tooltip === */
.dark [data-tooltip]::after {
    background: #334155;
    color: #f1f5f9;
}

/* === Dark Mode Skeleton === */
.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
}

/* === Enhanced Text Hierarchy in Dark Mode === */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #f1f5f9;
}

.dark p {
    color: #cbd5e1;
}

.dark small, .dark .text-small {
    color: #94a3b8;
}

.dark label, .dark .label-text {
    color: #e2e8f0;
}

.dark a {
    color: #818cf8;
}

.dark a:hover {
    color: #a5b4fc;
}

/* === Dark Mode Link Styles === */
.dark .btn-link {
    color: #818cf8;
}

.dark .btn-link:hover {
    color: #a5b4fc;
}

/* === Dark Mode Badge === */
.dark .badge {
    background: #334155;
    color: #f1f5f9;
}

.dark .badge-primary {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.dark .badge-success {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.dark .badge-warning {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.dark .badge-danger {
    background: rgba(244, 63, 94, 0.25);
    color: #f87171;
}

/* === Dark Mode Glass Effect === */
.dark .glass {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* === Dark Mode Status Dot === */
.dark .status-online::after {
    border-color: #0f172a;
}

/* === Dark Mode Custom Checkbox === */
.dark .custom-checkbox {
    border-color: #475569;
    background-color: transparent;
}

.dark .custom-checkbox:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

/* === Dark Mode Toggle Switch === */
.dark .toggle-switch {
    background: #475569;
}

.dark .toggle-switch::after {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* === Dark Mode Custom Checkbox and Toggle --- */
.dark .user-checkbox {
    border-color: #475569;
}

.dark .user-checkbox:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.dark .custom-toggle {
    background: #475569;
}

.dark .custom-toggle.active {
    background: #4f46e5;
}

/* === Dark Mode Form Elements === */
.dark .form-control,
.dark textarea {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}

.dark .form-control:focus,
.dark textarea:focus {
    background: #0f172a;
    border-color: #6366f1;
}

.dark .form-control::placeholder,
.dark textarea::placeholder {
    color: #64748b;
}

/* === Dark Mode Card Hover === */
.dark .card-hover:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.logo-white {
    filter: brightness(0) invert(1);
}

.just-validate-error-label {
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeIn 0.3s ease;
}

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

.border-red-500 {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

/* === Global Delete Modal === */
.global-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.global-delete-modal.hidden {
    display: none;
}

.global-delete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 180ms ease;
}

.global-delete-panel {
    --delete-from-x: 0px;
    --delete-from-y: 0px;
    position: relative;
    width: min(100%, 430px);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.45);
    padding: 1.25rem;
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.96);
    transition: opacity 180ms ease;
}

.global-delete-modal.is-open .global-delete-backdrop {
    opacity: 1;
}

.global-delete-modal.is-open .global-delete-panel {
    opacity: 1;
    animation: deleteModalPop 260ms cubic-bezier(0.2, 0.7, 0, 1) both;
}

@keyframes deleteModalPop {
    from {
        opacity: 0;
        transform: translate3d(var(--delete-from-x), var(--delete-from-y), 0) scale(0.72);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.global-delete-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.global-delete-icon-wrap {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: #e11d48;
    background: linear-gradient(180deg, #ffe4e6 0%, #fff1f2 100%);
    border: 1px solid #fecdd3;
}

.global-delete-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
}

.global-delete-message {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
}

.global-delete-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    color: #94a3b8;
    transition: all 150ms ease;
}

.global-delete-close:hover {
    color: #334155;
    background: #f1f5f9;
}

.global-delete-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.global-delete-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.625rem 1rem;
    transition: all 180ms ease;
}

.global-delete-confirm-btn:hover {
    filter: brightness(0.95);
}

.dark .global-delete-panel {
    border-color: #334155;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    box-shadow: 0 30px 60px -30px rgba(2, 6, 23, 0.9);
}

.dark .global-delete-title {
    color: #f8fafc;
}

.dark .global-delete-message {
    color: #94a3b8;
}

.dark .global-delete-close {
    color: #94a3b8;
}

.dark .global-delete-close:hover {
    color: #e2e8f0;
    background: #1e293b;
}

/* === Admin Account Credentials Card === */
.admin-credential-card {
    position: relative;
}

.admin-credential-note {
    font-size: 0.875rem;
    color: #64748b;
}

.admin-credential-eye-btn {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    border: 1px solid #dbe4f3;
    background: #ffffff;
    color: #52607a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: all 180ms ease;
    z-index: 4;
}

.admin-credential-eye-btn:hover {
    border-color: #a7b7d7;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.admin-credential-input {
    transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.admin-credential-input--blurred {
    filter: blur(5px);
    opacity: 0.95;
    transform: scale(0.995);
    user-select: none;
    pointer-events: none;
    caret-color: transparent;
}

.admin-sensitive-credentials-card {
    position: relative;
    overflow: hidden;
}

.admin-sensitive-credentials-card.is-locked {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-sensitive-credentials-card__body {
    position: relative;
    z-index: 2;
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, padding 220ms ease, backdrop-filter 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.admin-sensitive-credentials-card.is-locked .admin-sensitive-credentials-card__body {
    border-radius: 0.9rem;
    padding: 0.65rem 0.7rem 0.3rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e7eefc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1.5px);
}

.admin-sensitive-credentials-card.is-locked .admin-sensitive-credentials-card__body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 15% 8%, rgba(99, 102, 241, 0.08), transparent 58%);
}

.admin-sensitive-credentials-card.is-unlocked .admin-sensitive-credentials-card__body,
.admin-sensitive-credentials-card__body.is-unlocked {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
}

.admin-sensitive-credentials-card.is-unlocked .admin-sensitive-credentials-card__body::before,
.admin-sensitive-credentials-card__body.is-unlocked::before {
    display: none;
}

/* === Credential Confirmation Modal === */
.credential-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.credential-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.credential-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(3px);
}

.credential-modal__wrap {
    position: relative;
    z-index: 1201;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.credential-modal__panel {
    width: min(100%, 470px);
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.credential-modal.is-open .credential-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.credential-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #edf2fb;
    background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
}

.credential-modal__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
    flex-shrink: 0;
}

.credential-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.credential-modal__text {
    margin: 0.35rem 0 0;
    font-size: 0.825rem;
    line-height: 1.65;
    color: #475569;
}

.credential-modal__close {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
}

.credential-modal__close:hover {
    background: rgba(148, 163, 184, 0.18);
    color: #0f172a;
}

.credential-modal__body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.credential-modal__note {
    border: 1px solid #dbe8ff;
    background: #f4f8ff;
    color: #1e3a8a;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.82rem;
    line-height: 1.65;
}

.credential-modal__field-wrap {
    margin-top: 0.9rem;
}

.credential-modal__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.credential-modal__input-shell {
    position: relative;
}

.credential-modal__input {
    width: 100%;
    border: 1px solid #d5deed;
    border-radius: 0.75rem;
    height: 2.7rem;
    padding: 0 2.3rem 0 0.85rem;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
    transition: all 150ms ease;
}

.credential-modal__input::placeholder {
    color: #94a3b8;
}

.credential-modal__input:focus {
    border-color: #8ba6ea;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
    outline: none;
}

.credential-modal__input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.credential-modal__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
}
