/* Console Section */
.console-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ff88;
    border-radius: 6px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    will-change: backdrop-filter;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

.console-section.console-section.is-collapsed {
    display: none;
}

/* Form Fields Wrapper - Collapsible on mobile */
.form-fields-wrapper {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease, border 0.3s ease, opacity 0.3s ease;
}

.form-fields-wrapper.collapsed {
    overflow: hidden;
}

.form-fields-wrapper.collapsed .form-group {
    display: none !important;
}

@media (max-width: 480px) {
    .console-section.hidden {
        display: none;
    }
    
    /* Mobile: Form fields collapsed after submission */
    .form-fields-wrapper.collapsed {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-bottom: 0;
        border: none;
        background: transparent;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }
}

.console-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.console-header {
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid #00ff88;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title {
    color: #00ff88;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
}

.console-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-close-btn {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease, border 0.3s ease, opacity 0.3s ease;
}

.console-close-btn:hover {
    background: rgba(0, 255, 136, 0.2);
}

@media (min-width: 769px) {
    .console-close-btn {
        display: none !important;
    }
}

.console-status {
    background: #00ff88;
    color: #000;
    padding: 3px 6px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 500;
}

.console-content {
    flex: 1 1 0;
    padding: 12px 12px;
    background: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    min-height: 0;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.console-content::-webkit-scrollbar {
    width: 6px;
}

.console-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.console-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 3px;
}

.console-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.7);
}

.console-line {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.timestamp {
    color: #666;
    font-size: 0.85rem;
    min-width: 100px;
    font-weight: 500;
    flex-shrink: 0;
}

.log-text {
    color: #00ff88;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.log-success {
    color: #00ff88;
}

.log-error {
    color: #ff4444;
}

.log-warning {
    color: #ffaa00;
}

