/* Toolkit Module Styles */

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

/* Category Cards */
.category-card {
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: scale(1.02);
    border-color: var(--bs-primary) !important;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Avatar */
.avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Cards */
.tool-card.hidden {
    display: none !important;
}

/* Search Highlight */
.highlight {
    background-color: rgba(var(--bs-warning-rgb), 0.3);
    padding: 0 2px;
    border-radius: 2px;
}

/* Result Cards */
.result-card {
    border-right: 4px solid var(--bs-primary);
}

.result-card.success {
    border-right-color: var(--bs-success);
}

.result-card.danger {
    border-right-color: var(--bs-danger);
}

.result-card.warning {
    border-right-color: var(--bs-warning);
}

/* Form Styling */
.form-label {
    font-weight: 500;
}

/* RTL Adjustments */
[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Print Styles */
@media print {
    .layout-menu,
    .layout-navbar,
    .content-footer,
    .btn,
    .card-footer {
        display: none !important;
    }
    
    .content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-grow-sm {
    width: 0.5rem;
    height: 0.5rem;
}

/* Badge Improvements */
.badge-new {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 199, 111, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 199, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 199, 111, 0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
