/* MARTE Decision Studio - Studio Page Styles (Black & White Theme) */

.studio-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.studio-hero {
    text-align: center;
    padding: 3rem 2rem;
    border-bottom: 3px solid #000000;
    background: #ffffff;
}

.studio-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #000000;
}

.studio-hero .subtitle {
    font-size: 1.25rem;
    color: #444444;
    margin-bottom: 0.5rem;
}

.studio-hero .tagline {
    font-size: 1rem;
    font-style: italic;
    color: #000000;
    font-weight: 600;
}

/* Tool Section */
.tool-section {
    background: #f5f5f5;
    padding: 3rem 2rem;
}

.tool-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
    border-top: 4px solid #000000;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: #666666;
}

/* Demo Notice */
.demo-notice {
    background: #f0f0f0;
    border: 2px solid #000000;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.demo-notice p {
    color: #000000;
    font-weight: 600;
    margin: 0;
}

/* Usage Info */
.usage-info {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.usage-info span {
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 500;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.input-group textarea,
.input-group input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.input-group textarea {
    min-height: 150px;
}

.input-group textarea:focus,
.input-group input:focus {
    outline: none;
    border-color: #000000;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #000000;
    background: #f0f0f0;
}

.upload-area.dragover {
    border-color: #000000;
    background: #e8e8e8;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #666666;
    margin: 0;
}

.file-name {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #2e7d32;
    font-weight: 500;
}

/* Generate Button */
.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-large:hover:not(:disabled) {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-large:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    transform: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    display: none;
}

.loading.show {
    display: block;
}

.spinner-large {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #000000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading p {
    color: #1a1a1a;
    margin: 0;
    font-weight: 500;
}

.loading-sub {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Result Container */
.result-container {
    margin-top: 2rem;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 1.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.result-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #000000;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

/* Code Output */
.code-output {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000000;
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow: auto;
    margin-bottom: 1.5rem;
}

.code-output pre {
    margin: 0;
    font-family: 'Courier New', Menlo, Monaco, monospace;
    font-size: 0.85rem;
    color: #1a1a1a;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #757575;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #000000;
}

.tab-button.active {
    color: #000000;
    border-bottom-color: #000000;
}

.tab-content {
    display: none;
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
}

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

/* Test Section */
.test-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.test-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.test-section textarea:focus {
    outline: none;
    border-color: #000000;
}

.test-output {
    margin-top: 1rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000000;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', Menlo, Monaco, monospace;
    font-size: 0.85rem;
    color: #1a1a1a;
    white-space: pre-wrap;
    max-height: 300px;
    overflow: auto;
    min-height: 60px;
    line-height: 1.5;
}

.test-output:empty::before {
    content: "Results will appear here...";
    color: #999999;
}

/* Action Buttons in results */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 700px) {
    .studio-main {
        padding: 1rem;
    }

    .tool-container {
        padding: 1.5rem;
    }

    .result-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
