/* Estilos adicionais para o Deploy Manager */

/* Animações */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

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

/* Logs específicos */
.log-container {
    background: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid #333;
}

.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.log-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Status colors */
.status-online { 
    color: #10b981; 
    font-weight: 600;
}

.status-offline { 
    color: #ef4444; 
    font-weight: 600;
}

.status-stopped { 
    color: #f59e0b; 
    font-weight: 600;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.3s ease-out;
}

/* Progress bar */
.progress-bar {
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

/* Cards hover effect */
.site-card {
    transition: all 0.3s ease;
}

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

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal > div {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .log-container {
        max-height: 300px;
        font-size: 11px;
    }
    
    .site-card .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-card .flex > div:last-child {
        align-self: stretch;
    }
    
    .site-card .flex > div:last-child .flex {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bg-white {
        background-color: #1f2937 !important;
        color: #f9fafb;
    }
    
    .text-gray-800 {
        color: #f9fafb !important;
    }
    
    .text-gray-600 {
        color: #d1d5db !important;
    }
    
    .border-gray-200 {
        border-color: #374151 !important;
    }
}

/* Custom scrollbar for main content */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}