/* ==========================================================================
   EncodeEase Utility Suite - Structural Layout & Strict Color Identity
   ========================================================================== */

/* Universal Reset & Container Wrapping */
.encodeease-app-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f4f5f7;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #1a1a1a;
}

.encodeease-app-container *, 
.encodeease-app-container *::before, 
.encodeease-app-container *::after {
    box-sizing: border-box;
}

/* Centered Header Bar Style */
.encodeease-header {
    background-color: #e2e8f0;
    padding: 18px 20px;
    margin: 0;
    border-bottom: 1px solid #cbd5e1;
    text-align: center;
}

.encodeease-header h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: -0.5px;
    text-transform: none;
}

/* Tab Navigation Matrix */
.encodeease-tabs {
    display: flex;
    flex-wrap: wrap;
    background-color: #eaeded;
    border-bottom: 1px solid #dcdfe4;
    padding: 0 10px;
}

.encodeease-tab-btn {
    background: none;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.encodeease-tab-btn:hover {
    color: #111111;
    background-color: rgba(0, 0, 0, 0.02);
}

.encodeease-tab-btn.active {
    color: #111111;
    border-bottom: 3px solid #40ff53;
    background-color: #ffffff;
    font-weight: 700;
}

/* Application Workspace Grid Layout */
.encodeease-workspace {
    display: block; /* Standard streaming structural flow */
    padding: 25px;
    background-color: #ffffff;
}

.encodeease-panel {
    margin-bottom: 20px;
    width: 100%;
}

.encodeease-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Text Editor & Input Modules */
.encodeease-textarea {
    width: 100%;
    height: 180px;
    padding: 14px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.encodeease-textarea:focus {
    border-color: #40ff53;
    box-shadow: 0 0 0 2px rgba(64, 255, 83, 0.15);
}

.encodeease-textarea[readonly] {
    background-color: #f1f5f9;
    cursor: text;
}

/* Mode Switchers & Control Triggers */
.encodeease-mode-selector {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding: 10px 15px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.encodeease-radio-label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.encodeease-radio-label input[type="radio"] {
    margin-right: 8px !important;
    accent-color: #40ff53;
    cursor: pointer;
}

/* Processing Controls Strip */
.encodeease-control-bar {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
}

/* Primary Light Neon Green Call-To-Action */
.encodeease-btn-primary {
    background-color: #40ff53 !important;
    color: #111111 !important;
    border: 1px solid #2ee640 !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(64, 255, 83, 0.2) !important;
    transition: all 0.15s ease-in-out !important;
    text-transform: none !important;
}

.encodeease-btn-primary:hover {
    background-color: #2ee640 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(64, 255, 83, 0.3) !important;
}

.encodeease-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Actions */
.encodeease-btn-secondary {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.encodeease-btn-secondary:hover {
    background-color: #cbd5e1 !important;
    color: #1e293b !important;
}

/* Utility / Clipboard / File Actions */
.encodeease-action-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.encodeease-btn-utility {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.1s ease !important;
}

.encodeease-btn-utility:hover {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Toast Notification Status Layer */
.encodeease-toast-message {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #1e293b;
    color: #ffffff;
    font-size: 13px;
    border-radius: 4px;
    text-align: center;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(5px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

/* Media Queries for Seamless Screen Adjustments Across Form Factors */
@media (min-width: 768px) {
    .encodeease-workspace {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Layout optimizes automatically into modern stacked flow with high utility space */
}

@media (min-width: 1024px) {
    .encodeease-workspace {
        grid-template-columns: 1fr 150px 1fr;
        align-items: start;
        gap: 20px;
    }
    
    .encodeease-control-bar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        margin: 0;
        padding-top: 40px;
    }
    
    .encodeease-btn-primary, 
    .encodeease-btn-secondary {
        width: 100% !important;
        text-align: center;
    }
}