* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header h1 i {
    margin-right: 10px;
    color: #fbbf24;
}

.header p {
    opacity: 0.9;
    font-size: 1rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

textarea {
    width: 100%;
    height: 400px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea[readonly] {
    background-color: #f9fafb;
    color: #374151;
}

#convertBtn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#convertBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#convertBtn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

#downloadBtn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

#downloadBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.recommendations {
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.recommendations h2 {
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.recommendations h2 i {
    color: #fbbf24;
    margin-right: 0.5rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

.recommendation-box {
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px solid;
}

.proxy-recommendations {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.cpanel-recommendations {
    background: #fff7ed;
    border-color: #fed7aa;
}

.box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.box-header h3 {
    font-weight: 600;
    font-size: 1rem;
}

.proxy-recommendations .box-header {
    color: #1e40af;
}

.cpanel-recommendations .box-header {
    color: #c2410c;
}

.recommendation-box ul {
    list-style: none;
    padding: 0;
}

.recommendation-box li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.proxy-recommendations li {
    color: #1e3a8a;
}

.cpanel-recommendations li {
    color: #9a3412;
}

.recommendation-box li i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.instructions-box {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.instructions-box h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.instructions-box h3 i {
    color: #6366f1;
    margin-right: 0.5rem;
}

.instructions-box ol {
    padding-left: 1.5rem;
    color: #4b5563;
}

.instructions-box li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.instructions-box strong {
    color: #dc2626;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendations {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar styling */
textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}