/* GraphMemory-IDE Dashboard Custom Styles */

.main > div {
    padding-top: 2rem;
}

.metric-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    margin: 0.5rem 0;
}

.chart-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    margin: 1rem 0;
}

.sidebar .sidebar-content {
    background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
}

/* Login form styling */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
.status-connected {
    color: #28a745;
    font-weight: bold;
}

.status-disconnected {
    color: #dc3545;
    font-weight: bold;
}

.status-streaming {
    color: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .main > div {
        padding: 1rem;
    }
    
    .metric-container {
        margin: 0.25rem 0;
        padding: 0.75rem;
    }
    
    .chart-container {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
}

/* Custom button styles */
.stButton > button {
    border-radius: 8px;
    border: none;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stButton > button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Metric card enhancements */
.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    margin: 0.5rem;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: scale(1.05);
}

/* Navigation styling */
.nav-button {
    width: 100%;
    margin: 0.25rem 0;
    text-align: left;
}

/* Loading spinner customization */
.stSpinner > div {
    border-top-color: #FF6B6B !important;
} 