/* Modern thin scrollbar - all elements */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
}

*:hover {
    scrollbar-color: rgba(156, 163, 175, 0.6) transparent;
}

/* Webkit (Chrome/Safari/Edge) */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
    border-radius: 9999px;
    transition: background-color 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.6);
}

/* Sidebar scrollbar - lighter for dark background */
.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

.animate-fade-out {
    animation: fadeOut 0.2s ease-in;
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

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

/* Custom Form Styles */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Override default datetime-local styles */
input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Toggle switch transition */
[role="switch"] {
    transition: background-color 0.2s ease-in-out;
}

[role="switch"] span {
    transition: transform 0.2s ease-in-out;
}

/* Drag and drop highlight */
.drag-over {
    border-color: #10B981 !important;
    background-color: #ECFDF5 !important;
}

/* Table row hover */
tbody tr {
    transition: background-color 0.15s ease;
}

/* Card hover effects */
.card-hover {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Border left accent for active nav items */
.border-l-3 {
    border-left-width: 3px;
}

/* Character counter warning */
.char-warning {
    color: #EF4444;
    font-weight: 600;
}

/* Smooth page transitions */
main {
    animation: fadeIn 0.2s ease-out;
}

/* Focus ring styles */
.focus-ring:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Status badge base */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
}

/* Print styles */
@media print {
    aside, header, .no-print {
        display: none !important;
    }
    main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}
