.compact-header {
    padding: 30px 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compact-header h1 {
    font-size: 44px !important;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.compact-header h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #888;
    max-width: 600px;
    font-weight: 500;
}

.beautifier-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Info Panel */
.info-panel {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.info-content {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.5;
}

.info-content p {
    margin-bottom: 10px;
}

.info-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.info-content li {
    margin-bottom: 5px;
}

.info-content code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
}

/* Settings Section */
.settings-section {
    background-color: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 30px;
}

.settings-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary);
}

/* Mode Selector */
.mode-selector {
    margin-bottom: 25px;
}

.mode-selector label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

.mode-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mode-option {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background-color: #f8f9fa;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-option:hover {
    background-color: #f0f0f0;
}

.mode-option.active {
    background-color: #f0f7ff;
    border-color: #0078d7;
}

.mode-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-icon svg {
    width: 28px;
    height: 28px;
    color: #0078d7;
}

.mode-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mode-desc {
    font-size: 13px;
    color: var(--color-secondary);
    text-align: center;
    line-height: 1.4;
}

/* Options Tabs and Panels */
.options-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.option-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--color-secondary);
}

.option-tab:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

.option-tab.active {
    border-bottom-color: #0078d7;
    color: #0078d7;
    font-weight: 600;
}

.options-panels {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 8px;
    background-color: #fcfcfc;
    padding: 5px;
    margin-bottom: 10px;
}

/* Custom Scrollbar for Options Panels */
.options-panels::-webkit-scrollbar {
    width: 8px;
}

.options-panels::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.options-panels::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
}

.options-panels::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox scrollbar for options panels */
.options-panels {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.options-panel {
    display: none;
    padding: 15px;
}

.options-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.settings-select, .settings-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-small);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--color-primary);
    background-color: #fff;
    transition: all var(--transition-fast);
}

.settings-select:focus, .settings-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.checkbox-container label {
    display: inline;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 0;
}

.max-line-wrapper {
    margin-top: 10px;
    padding-left: 24px;
}

/* Code Sections */
.code-section {
    background-color: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.code-header .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.code-actions {
    display: flex;
    gap: 8px;
}

.code-actions button {
    white-space: nowrap;
    min-width: 100px;
    position: relative;
}

.btn-feedback {
    position: relative;
}

.btn-feedback-text {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.btn-feedback.active .btn-feedback-text {
    opacity: 0;
}

.btn-feedback-active {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-feedback.active .btn-feedback-active {
    opacity: 1;
}

.code-content {
    padding: 0;
}

.code-content textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: none;
    border-radius: 0 0 16px 16px;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    color: #333;
    background-color: #f8f9fa;
    transition: background-color var(--transition-fast);
}

.code-content textarea:focus {
    outline: none;
    background-color: #fff;
}

.code-content textarea:read-only {
    background-color: #f8f9fa;
    cursor: default;
}

/* Custom Scrollbar for Textareas */
.code-content textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-content textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.code-content textarea::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
}

.code-content textarea::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.code-content textarea::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Firefox scrollbar for textareas */
.code-content textarea {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Notification Area */
.notification-area {
    display: none;
    background-color: #f8f9fa;
    border-left: 6px solid #F44336;
    padding: 10px 15px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-area.visible {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    flex-grow: 1;
    color: #d32f2f;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: #666;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .beautifier-container {
        padding: 10px;
    }
    
    .compact-header h1 {
        font-size: 32px !important;
    }
    
    .code-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .code-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .code-actions button {
        flex: 1;
        min-width: auto;
    }
    
    .mode-options {
        flex-direction: column;
    }
    
    .options-panel.active {
        grid-template-columns: 1fr;
    }
    
    .options-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .option-tab {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .compact-header h1 {
        font-size: 28px !important;
    }
    
    .compact-header h2 {
        font-size: 15px;
    }
    
    .beautifier-container {
        padding: 5px;
    }
    
    .info-panel, .settings-section, .code-section {
        padding: 15px;
    }
}