/* Global styles for JLib Inspector Dashboard */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

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

.status-connected { 
    color: #10b981; 
}

.status-disconnected { 
    color: #ef4444; 
}

.status-unknown { 
    color: #6b7280; 
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.app-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.app-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.jar-item {
    transition: all 0.2s ease-in-out;
}

.jar-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}

.search-input {
    transition: all 0.2s ease-in-out;
}

.search-input:focus {
    transform: scale(1.02);
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.list-view .app-card {
    margin-bottom: 1rem;
}

.compact-jar {
    border-left: 3px solid #e5e7eb;
    transition: border-color 0.2s ease-in-out;
}

.compact-jar.loaded {
    border-left-color: #10b981;
}

.compact-jar.not-loaded {
    border-left-color: #ef4444;
}

.tab-button {
    transition: all 0.2s ease-in-out;
}

.tab-button.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.tab-button:not(.active) {
    background-color: white;
    color: #6b7280;
    border-color: #d1d5db;
}

.tab-button:not(.active):hover {
    background-color: #f9fafb;
    color: #374151;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
