/* Flowshub Custom Styles */

/* Fonts */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Sidebar item styles */
.sidebar-item {
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background-color: rgba(55, 65, 81, 0.7);
}

.sidebar-item.active {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
}

/* Custom scrollbar */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 0.8);
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.9);
}

/* Search input focus states */
.search-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 1px #22c55e;
}

/* Platform tag styles */
.platform-tag {
    transition: all 0.2s ease-in-out;
}

.platform-tag:hover {
    transform: scale(1.02);
}

.platform-tag.active {
    background-color: #16a34a;
    color: white;
}

.platform-tag.inactive {
    background-color: rgba(55, 65, 81, 1);
    color: rgba(209, 213, 219, 1);
}

/* Button hover effects */
.action-button {
    transition: all 0.2s ease-in-out;
}

.action-button:hover {
    background-color: rgba(55, 65, 81, 1);
    color: rgba(229, 231, 235, 1);
}

/* Flow count badge */
.flow-count {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(75, 85, 99, 0.4) 25%, rgba(107, 114, 128, 0.6) 50%, rgba(75, 85, 99, 0.4) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom dropdown styles */
.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Dark theme enhancements */
.dark-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.dark-card:hover {
    border-color: rgba(107, 114, 128, 0.5);
}

/* Text selection */
::selection {
    background-color: rgba(34, 197, 94, 0.3);
    color: white;
}

/* Focus styles for accessibility */
.focus-ring:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Modal Styles */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* JSON syntax highlighting */
#jsonContent {
    line-height: 1.5;
    tab-size: 2;
}

/* Modal animation */
#flowModal {
    animation: modalFadeIn 0.2s ease-out;
}

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

/* Scrollbar for modal content */
#flowModal .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

#flowModal .overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 4px;
}

#flowModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 0.8);
    border-radius: 4px;
}

#flowModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.9);
}

/* Code blocks in metadata */
code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Button hover animations */
#flowModal button {
    transition: all 0.2s ease-in-out;
}

#flowModal button:hover {
    transform: translateY(-1px);
}

/* Metadata section styling */
#flowMetadata .border-b:last-child {
    border-bottom: none;
}

/* Responsive modal */
@media (max-width: 768px) {
    #flowModal .max-w-4xl {
        max-width: 95vw;
        margin: 1rem;
    }
    
    #flowModal .flex {
        flex-direction: column;
    }
    
    #flowModal .w-80 {
        width: 100%;
        max-height: 200px;
    }
} 