
.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;
}


.commentremover-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}


.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: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
}


.settings-section {
    background-color: var(--color-white);
    border-radius: 16px;
    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: 15px;
    color: var(--color-primary);
}

.comment-types {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-type-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px;
    flex: 1;
    min-width: 200px;
}

.checkbox-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.checkbox-header input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-button-bg);
}

.checkbox-header label {
    font-weight: 600;
    font-size: 14px;
}

.input-example {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.example-field label {
    font-size: 13px;
    color: var(--color-secondary);
}

.example-field input[type="text"] {
    padding: 6px 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-small);
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    width: 100%;
}

.example-field input[type="text"]:focus {
    border-color: var(--color-button-bg);
    outline: none;
}

.presets-container {
    margin-top: 20px;
}

.presets-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}


.presets-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
}

.presets-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 24px;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    scroll-behavior: smooth;
}

.presets-list::-webkit-scrollbar {
    display: none; 
}

.preset-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: var(--border-radius-small);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.preset-btn:hover {
    background-color: #e0e0e0;
}

.preset-btn.active {
    background-color: var(--color-button-bg);
    color: white;
    border-color: var(--color-button-bg);
}


.scroll-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.scroll-indicator.visible {
    opacity: 0.8;
}

.left-indicator {
    left: 0;
}

.right-indicator {
    right: 0;
}


.presets-dropdown-container {
    display: none;
    margin-top: 10px;
}

.language-dropdown {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-small);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: white;
}


.code-section {
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.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;
}


#removeComments {
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 8px;
}

.code-content {
    padding: 0;
}

.code-content textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: none;
    border-radius: 0 0 16px 16px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background-color: #f8f9fa;
}

.code-content textarea:focus {
    outline: none;
    background-color: #fff;
}

.code-content textarea:read-only {
    background-color: #f8f9fa;
    cursor: default;
}


.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);
}



@media (max-width: 768px) {
    .commentremover-container {
        padding: 10px;
    }
    
    .compact-header h1 {
        font-size: 32px !important;
    }
    
    .presets-scroll-container {
        max-width: 100%;
        overflow: hidden;
    }
    
    .preset-btn {
        white-space: nowrap;
        min-width: auto;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .code-content textarea {
        min-height: 150px;
    }
    
    
    .preset-btn.active {
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
        transform: scale(1.05);
    }
    
    
    .code-actions button {
        min-width: 0;
        font-size: 13px;
        padding: 8px 10px;
    }
    
    
    #removeComments {
        font-size: 12px;
        padding: 8px 6px;
    }
    
    .btn-feedback-text, .btn-feedback-active {
        font-size: 12px;
    }
    
    
    @media (orientation: landscape) {
        .code-actions {
            flex-wrap: nowrap;
        }
    }
}

@media (max-width: 480px) {
    .example-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .example-field input[type="text"] {
        width: 100%;
    }
    
    .compact-header h1 {
        font-size: 28px !important;
    }
    
    .code-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .code-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .code-actions button {
        flex: 1;
        text-align: center;
        padding: 8px 0;
    }
    
    .comment-types {
        flex-direction: column;
    }
}