* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: hsla(43, 91%, 69%, 1);
    background: linear-gradient(90deg, hsla(43, 91%, 69%, 1) 0%, hsla(212, 74%, 50%, 1) 100%);
    background: -moz-linear-gradient(90deg, hsla(43, 91%, 69%, 1) 0%, hsla(212, 74%, 50%, 1) 100%);
    background: -webkit-linear-gradient(90deg, hsla(43, 91%, 69%, 1) 0%, hsla(212, 74%, 50%, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#F8CF6A", endColorstr="#2178DD", GradientType=1 );
    color: white;
    padding: 25px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3.2rem;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-border {
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 20px;
}

.main-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    gap: 2px;
    padding: 2px;
}

.tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
    border-radius: 10px;
    background: transparent;
}

.tab.active {
    background: #3b82f6;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tab:hover:not(.active) {
    background: #e2e8f0;
    color: #475569;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #1e293b;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}

button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.result {
    margin-top: 25px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    min-height: 120px;
    word-break: break-all;
    white-space: pre-wrap;
    border: 1.5px solid #f1f5f9;
}

.emoji-display {
    font-size: 26px;
    line-height: 1.6;
    text-align: center;
    padding: 15px;
    color: #1e293b;
}

.error {
    color: #dc2626;
    margin-top: 10px;
    text-align: center;
    padding: 14px;
    background: #fef2f2;
    border-radius: 10px;
    border: 1.5px solid #fecaca;
    font-weight: 500;
}

.info {
    background: #f0f9ff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    font-size: 15px;
    border: 1.5px solid #bae6fd;
    line-height: 1.6;
}

.info h3 {
    margin-bottom: 12px;
    color: #0369a1;
    font-weight: 700;
    font-size: 18px;
}

.info p {
    margin-bottom: 10px;
    color: #0c4a6e;
}

/* Footer Styles */
.footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 500;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Copy button for results */
.copy-btn {
    background: #64748b;
    width: auto;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
    display: inline-block;
}

.copy-btn:hover {
    background: #475569;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header .subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .main-content {
        padding: 30px 15px;
    }
    
    .tab {
        padding: 14px;
        font-size: 14px;
    }
    
    .emoji-display {
        font-size: 22px;
    }
    
    button {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 25px 20px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        padding: 12px;
    }
    
    .emoji-display {
        font-size: 20px;
    }
}