/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for scrolling */
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.app-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.app-header p {
    font-size: 1rem;
    color: #7f8c8d;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #dee2e6;
}

.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; /* Align with parent border */
}

.tab-button:hover {
    color: #007bff;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* Tab Panel Styling */
.tab-panel {
    display: none; /* Hidden by default, shown by JS */
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fdfdfd;
}

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

.tab-panel h2 {
    font-size: 1.8rem;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Wireframe Mockup Styles */
.wireframe-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    min-height: 500px;
}

.wireframe-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
}

.wireframe-panel h3 {
    font-size: 1.1rem;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ced4da;
}

.wireframe-panel h4 {
    font-size: 0.95rem;
    color: #495057;
    margin-top: 10px;
    margin-bottom: 8px;
}

.mock-control-group {
    margin-bottom: 12px;
}

.mock-control-group label {
    display: block;
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 4px;
    font-weight: 500;
}

.mock-select, .mock-textarea, .mock-custom-size, .mock-image-upload {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.mock-textarea {
    min-height: 40px;
}
.mock-textarea-small {
    min-height: 30px;
    font-family: monospace;
    font-size: 0.8rem;
}


.mock-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.mock-template-card {
    background-color: #e9ecef;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    cursor: default;
}
.mock-template-card.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.mock-size-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}
.mock-size-preset {
    background-color: #e9ecef;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    font-size: 0.75rem;
}
.mock-size-preset.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}
.mock-custom-size {
    font-size: 0.8rem;
    margin-top: 5px;
}

.mock-image-upload {
    text-align: center;
    padding: 15px 10px;
    cursor: default;
}

.mock-preview-area {
    background-color: #fff;
    border: 2px dashed #adb5bd;
    border-radius: 6px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mock-generated-content {
    text-align: center;
    color: #495057;
    padding: 15px;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    width: 80%;
}

.mock-control-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f1f3f5;
    border-radius: 4px;
}

.mock-color-picker, .mock-slider {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mock-color-picker input[type="color"] {
    width: 20px;
    height: 20px;
    border: 1px solid #adb5bd;
    padding:0;
    margin: 0 5px;
    vertical-align: middle;
}
.mock-slider span {
    margin-right: 5px;
}

.mock-button {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
    margin: 3px;
    border: none;
    cursor: default;
}
.mock-button-reset {
    background-color: #ffc107;
    color: #212529;
    display: block;
    width: calc(100% - 6px); /* Full width within padding */
    margin-top: 10px;
}

.mock-export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
}


/* Features & Vision Content Styling */
#vision-content article {
    margin-bottom: 30px;
}

#vision-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

#vision-content p, 
#vision-content ul {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

#vision-content ul {
    list-style: disc;
    padding-left: 25px;
}

#vision-content ul li {
    margin-bottom: 8px;
}

#vision-content strong {
    font-weight: 600;
    color: #34495e;
}

/* Accessibility */
.tab-button:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 992px) { /* Tablet and smaller */
    .wireframe-layout {
        grid-template-columns: 1fr 1fr; /* Two columns */
    }
    .wireframe-panel-center {
        grid-column: span 2; /* Center panel spans both columns */
        order: 1; /* Preview first */
    }
     .wireframe-panel-left {
        order: 2;
    }
    .wireframe-panel-right {
        order: 3;
    }
}


@media (max-width: 768px) { /* Mobile */
    .app-container {
        margin: 10px;
        padding: 15px;
    }

    .app-header h1 {
        font-size: 1.8rem;
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .tab-panel h2 {
        font-size: 1.5rem;
    }

    .wireframe-layout {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }
    .wireframe-panel-center {
        grid-column: span 1; /* Reset span */
    }
}