/* HTML Validator Wrapper */
.html-validator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

/* Validator Controls */
.validator-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.control-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 15px;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-select:hover {
    border-color: #667eea;
}

.control-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Validator Main Layout */
.validator-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Editor and Results Sections */
.editor-section,
.results-section {
    background: white;
    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;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.section-icon {
    font-size: 20px;
}

.section-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 16px;
    padding: 0;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

/* Code Editor */
.code-editor {
    flex: 1;
    min-height: 400px;
    width: 100%;
}

/* Results Content */
.results-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(500px - 60px);
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #718096;
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.results-placeholder p {
    font-size: 15px;
    margin: 0;
    color: #a0aec0;
}

/* Status Badge */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.status-badge.ready {
    background: rgba(255, 255, 255, 0.2);
}

.status-badge.valid {
    background: #48bb78;
}

.status-badge.warning {
    background: #ed8936;
}

.status-badge.error {
    background: #f56565;
}

/* Validation Results Display */
.validation-item {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.validation-item.error {
    background: #fff5f5;
    border-color: #f56565;
}

.validation-item.warning {
    background: #fffaf0;
    border-color: #ed8936;
}

.validation-item.info {
    background: #ebf8ff;
    border-color: #4299e1;
}

.validation-item.success {
    background: #f0fff4;
    border-color: #48bb78;
}

.validation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.validation-header.error {
    color: #c53030;
}

.validation-header.warning {
    color: #c05621;
}

.validation-header.info {
    color: #2b6cb0;
}

.validation-header.success {
    color: #22543d;
}

.validation-icon {
    font-size: 18px;
}

.validation-message {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.validation-line {
    color: #718096;
    font-size: 12px;
    
    margin-top: 4px;
}

.validation-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.1);
}

/* Validator Actions */
.validator-actions {
    display: flex;
    justify-content: center;
}

.validate-button {
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.validate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.validate-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 20px;
}

.button-text {
    letter-spacing: 0.5px;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.error-card .card-icon {
    background: #fed7d7;
}

.warning-card .card-icon {
    background: #feebc8;
}

.info-card .card-icon {
    background: #bee3f8;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}

.error-card .card-value {
    color: #c53030;
}

.warning-card .card-value {
    color: #c05621;
}

.info-card .card-value {
    color: #2b6cb0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .validator-main {
        grid-template-columns: 1fr;
    }
    
    .editor-section,
    .results-section {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .html-validator-wrapper {
        gap: 16px;
    }
    
    .validator-controls {
        padding: 16px;
        gap: 12px;
    }
    
    .control-group {
        min-width: 100%;
    }
    
    .section-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .code-editor {
        min-height: 300px;
    }
    
    .results-content {
        padding: 16px;
        max-height: calc(400px - 60px);
    }
    
    .validate-button {
        padding: 14px 36px;
        font-size: 15px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .card-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .code-editor {
        min-height: 250px;
    }
    
    .results-content {
        max-height: calc(350px - 60px);
    }
    
    .validation-message {
        font-size: 13px;
    }
    
    .validate-button {
        width: 100%;
        justify-content: center;
    }
}
