/* Additional custom styles */
/* Base styles are included in base.html template */

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar nav {
        margin-top: 1rem;
        width: 100%;
    }

    .navbar nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .container {
        padding: 0 10px;
    }

    form[style*="display: flex"] {
        flex-direction: column;
    }

    form[style*="display: flex"] .form-group {
        width: 100%;
    }
}

/* File input styling */
input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

/* Radio button styling */
input[type="radio"] {
    cursor: pointer;
}

/* Code/sequence textarea */
textarea[name="sequences"] {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background: #ffeaa7;
    color: #d63031;
}

.status-running {
    background: #74b9ff;
    color: #0984e3;
}

.status-completed {
    background: #55efc4;
    color: #00b894;
}

.status-failed {
    background: #fab1a0;
    color: #d63031;
}

/* Enhanced table styling */
table tr:hover {
    background: #f8f9fa;
}

/* Button group */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Feature grid on homepage */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    background: #ecf0f1;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease;
}

button,
.btn,
input,
select,
textarea {
    transition: all 0.3s ease;
}

/* Focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Disabled state */
button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading-text {
    animation: pulse 1.5s ease-in-out infinite;
}