@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s ease-in-out; }

.toast {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
}
@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-100%); }
}

.card-link { word-break: break-word; }
.card-link a { color: #3b82f6; text-decoration: underline; }
.card-link a:hover { color: #1d4ed8; }

.context-menu, .info-card-context-menu {
    animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.mobile-menu {
    transition: transform 0.3s ease-in-out;
}
.mobile-menu.hidden {
    transform: translateX(-100%);
}
.mobile-menu.show {
    transform: translateX(0);
}

.info-card-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.password-dots {
    letter-spacing: 2px;
}

.long-press-active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Enhanced Hover Effects */
.file-card, .info-card, .update-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.file-card:hover, .info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}
.update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12);
}
.file-card:active, .info-card:active {
    transform: translateY(-2px) scale(0.98);
}

.file-icon, .info-icon {
    transition: all 0.3s ease;
}
.file-card:hover .file-icon, .info-card:hover .info-icon {
    transform: scale(1.1);
}
.file-card:hover .folder-icon { color: #f59e0b; }
.file-card:hover .pdf-icon { color: #dc2626; }
.file-card:hover .text-icon { color: #2563eb; }
.info-card:hover .info-card-img { transform: scale(1.05); }

/* Button Hover */
.btn-primary, .btn-secondary {
    transition: all 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary:hover {
    transform: translateY(-1px);
    background-color: #e5e7eb;
}

.icon-btn {
    transition: all 0.2s ease;
}
.icon-btn:hover { transform: scale(1.1); }
.icon-btn:active { transform: scale(0.95); }

.category-card {
    transition: all 0.3s ease;
}
.category-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}
.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}
.category-icon {
    transition: all 0.3s ease;
}

.table-row {
    transition: all 0.2s ease;
}
.table-row:hover {
    background-color: #f9fafb;
}

.breadcrumb-item, .dropdown-item {
    transition: all 0.2s ease;
}
.breadcrumb-item:hover {
    color: #1f2937;
    background-color: #f3f4f6;
}
.dropdown-item:hover {
    background-color: #f3f4f6;
    padding-left: 1.25rem;
}

.login-input {
    transition: all 0.3s ease;
}
.login-input:focus {
    transform: scale(1.01);
}

.badge-hover:hover {
    transform: scale(1.05);
}
/* ... keep all existing styles ... */

/* Add these new animations at the end */

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

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

.animate-fadeIn {
    animation: fadeIn 0.2s ease-out;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}
