/* Custom CSS to augment Tailwind with Glassmorphism and modern UI touches */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(22, 25, 31, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Nav Item active state */
.nav-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border-left: 3px solid #14b8a6;
}
.nav-item:not(.active) {
    color: #9ca3af;
}
.nav-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
}

/* Modern Inputs form styling */
.modern-input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
    transition: all 0.2s ease-in-out;
}
.modern-input:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

/* Table styles */
table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #9ca3af;
    text-align: left;
    padding: 1rem 1.5rem;
}
table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
    vertical-align: middle;
}
table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Animations for Modals */
.modal-show {
    opacity: 1 !important;
}
.modal-show * {
    transform: scale(1) !important;
}

/* Toasts */
.toast-enter {
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-leave {
    animation: slideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
