/* Rosalinda CodeCanvas - DeepSync Rose Edition 🌹 */
/* Custom Styles for Enhanced UI/UX */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(244, 63, 94, 0.05);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f43f5e, #db2777);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e11d48, #be185d);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(90deg, #f43f5e 0%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glowing Effects */
.glow-effect {
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.5);
}

/* Pulse Animation for Live Indicators */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Code Editor Styling */
code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

pre {
    position: relative;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f43f5e, #db2777);
}

/* Tab Active State Enhancement */
.tab-btn.active {
    position: relative;
    overflow: hidden;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f43f5e, #db2777);
}

/* Button Hover Effects */
.action-btn:hover {
    transform: translateY(-2px);
}

/* Input Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

/* Status Indicator */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-processing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: pulse-glow 1.5s infinite;
}

/* File Item Hover */
.file-item:hover i {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .flex-col > .flex {
        flex-direction: column;
    }
    
    .w-1\/4, .w-2\/5, .w-1\/3 {
        width: 100%;
        margin: 0 0 1rem 0;
    }
    
    .absolute {
        position: sticky;
    }
}

/* Loading Animation */
@keyframes loading-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(244, 63, 94, 0.1) 25%, 
        rgba(244, 63, 94, 0.2) 50%, 
        rgba(244, 63, 94, 0.1) 75%);
    background-size: 200px 100%;
    animation: loading-shimmer 2s infinite;
}

/* Connection Line Effect */
.connection-line {
    position: relative;
}

.connection-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 4px;
    height: 100%;
    transform: translateY(-50%);
    background: linear-gradient(to bottom, 
        rgba(244, 63, 94, 0), 
        rgba(244, 63, 94, 0.6), 
        rgba(244, 63, 94, 0));
}

/* Card Hover Lift Effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* Border Gradient Animation */
@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.animated-border {
    background: linear-gradient(90deg, 
        #f43f5e, 
        #db2777, 
        #f43f5e, 
        #db2777);
    background-size: 200% 100%;
    animation: border-rotate 4s linear infinite;
}