/* Main tabs container */
.main-tabs-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Tab navigation bar */
.main-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    margin: 0;
    overflow-x: auto; /* Handle overflow on mobile */
}

/* Individual tab buttons */
.main-tab-btn {
    flex: 1; /* Equal width tabs */
    min-width: 200px; /* Minimum width */
    padding: 16px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.main-tab-btn:hover {
    background: rgba(46, 125, 50, 0.05);
}

.main-tab-btn.active {
    background: white;
    border-bottom-color: #2E7D32;
}

/* Tab content structure */
.main-tab-btn .tab-icon {
    font-size: 20px;
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
}

.main-tab-btn .tab-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.main-tab-btn .tab-description {
    font-size: 13px;
    color: #666;
    display: block;
    font-weight: normal;
}

.main-tab-btn.active .tab-title {
    color: #2E7D32;
}

/* Tab content area */
.main-tab-content {
    background: white;
    min-height: 500px;
}

/* Tab panes */
.tab-pane {
    display: none;
    padding: 24px;
}

.tab-pane.active {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-tabs-nav {
        flex-direction: column;
    }
    
    .main-tab-btn {
        min-width: auto;
        text-align: center;
    }
}

/* Main container for the entire tab interface */
.main-content {
    display: flex;
    flex-direction: column; /* Stack vertically */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tab navigation container */
.tab-container {
    display: flex;
    flex-direction: column; /* Stack tabs above content */
    width: 100%;
}

/* Tab buttons row */
.tab-nav {
    display: flex;
    flex-direction: row; /* Tabs in a horizontal row */
    justify-content: flex-start;
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* Individual tab buttons */
.tab-button {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active {
    color: #2E7D32;
    border-bottom-color: #2E7D32;
    background: rgba(46, 125, 50, 0.1);
}

.tab-button:hover {
    background: rgba(46, 125, 50, 0.05);
    color: #2E7D32;
}

/* Tab content area */
.tab-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none; /* Connect to tab nav */
    border-radius: 0 0 8px 8px;
    padding: 0;
}

/* Individual tab panes */
.tab-pane {
    display: none;
    width: 100%;
    padding: 24px;
    flex: 1;
}

.tab-pane.active {
    display: block;
}

/* Content within each tab */
.tab-pane .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

/* Left and right panels within tabs */
.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
}

/* Form elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

/* Update consultant container for tab mode */
.consultant-container {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Keep existing refinement container styling but make it less prominent */
.refinement-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
