/* Style Checker Interface */
.style-checker-interface {
    margin-bottom: 2rem;
}

.checker-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Section Styling */
.input-section,
.results-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-select:hover {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.control-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.control-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.control-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.control-btn:active {
    transform: translateY(1px);
}

/* Editor Wrapper */
.editor-wrapper {
    flex: 1;
    position: relative;
    min-height: 400px;
    background: #ffffff;
}

.code-editor {
    width: 100%;
    height: 100%;
    min-height: 400px;
    
    font-size: 14px;
    line-height: 1.5;
}

/* Results Section */
.results-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.summary-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.summary-warning {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffe082;
}

.summary-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.results-content {
    flex: 1;
    padding: 1.5rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    text-align: center;
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 0.9375rem;
    max-width: 280px;
}

/* Issue Items */
.issue-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.issue-item {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.issue-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateX(2px);
}

.issue-item.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.issue-item.warning {
    border-left-color: #ffc107;
    background: #fffef5;
}

.issue-item.info {
    border-left-color: #17a2b8;
    background: #f0f9ff;
}

.issue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.issue-line {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.issue-type {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.issue-type.error {
    background: #fee;
    color: #c33;
}

.issue-type.warning {
    background: #fff8e1;
    color: #f57c00;
}

.issue-type.info {
    background: #e3f2fd;
    color: #1976d2;
}

.issue-message {
    color: #212529;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.issue-rule {
    font-size: 0.8125rem;
    color: #6c757d;
    
}

/* Section Footer */
.section-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    transform: translateY(-1px);
}

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

.action-btn-secondary {
    background: #ffffff;
    color: #495057;
    border: 1px solid #ced4da;
}

.action-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.action-btn:active {
    transform: translateY(1px);
}

.btn-icon {
    font-size: 1rem;
}

.btn-text {
    font-weight: 500;
}

/* Success State */
.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #28a745;
}

.success-message {
    font-size: 1.125rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.success-detail {
    font-size: 0.9375rem;
    color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .checker-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .input-section,
    .results-section {
        min-height: 400px;
    }

    .editor-wrapper {
        min-height: 350px;
    }

    .code-editor {
        min-height: 350px;
    }

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

    .section-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .control-select {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 767px) {
    .style-checker-interface {
        margin-top: 1.5rem;
    }

    .section-header {
        padding: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .control-select,
    .control-btn {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.625rem;
    }

    .results-content {
        padding: 1rem;
        max-height: 400px;
    }

    .section-footer {
        padding: 0.875rem 1rem;
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .issue-item {
        padding: 0.875rem;
    }

    .empty-state {
        min-height: 250px;
    }

    .empty-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    .section-controls {
        flex-direction: column;
    }

    .control-select,
    .control-btn {
        width: 100%;
    }

    .results-summary {
        flex-wrap: wrap;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ACE Editor Customization */
.ace-xcode .ace_content .ace_keyword {
    color: #0b7500;
}

.ace-xcode .ace_content .ace_string {
    color: #cc5b5c;
}

.ace-xcode .ace_content .ace_constant.ace_numeric {
    color: #008100;
}

.ace-xcode .ace_content .ace_comment {
    color: #008000;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
