/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 40px;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.logo-container {
    position: relative;
    z-index: 1;
}

.logo-container h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.5px;
}

.logo-container h1 i {
    font-size: 2.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tagline {
    font-size: 1.15rem;
    opacity: 0.95;
    font-weight: 400;
}

.home-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.05rem;
}

.home-btn:hover {
    background-color: white;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
    padding: 40px;
    flex: 1;
}

.app-container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 40px;
    height: 100%;
}

/* Controls Section */
.controls-section {
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2ff;
    height: fit-content;
    position: sticky;
    top: 40px;
}

.control-group h2 {
    font-size: 1.9rem;
    margin-bottom: 28px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.tab-buttons {
    display: flex;
    margin-bottom: 28px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    gap: 8px;
}

.tab-btn {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    position: relative;
}

.tab-btn:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Emoji Selection */
.emoji-selection {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#emoji-input {
    width: 100%;
    padding: 18px;
    font-size: 2.8rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

#emoji-input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.emoji-preview {
    font-size: 4.5rem;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.emoji-preview:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
}

/* Emoji Search */
.emoji-search {
    position: relative;
    margin-top: 8px;
}

.emoji-search input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: white;
}

.emoji-search input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.emoji-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Emoji Categories */
.emoji-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-1px);
}

.category-btn.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Emoji Suggestions Container */
.emoji-suggestions-container {
    position: relative;
    height: 280px;
    margin-top: 12px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.emoji-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 12px;
    overflow-y: auto;
    height: 100%;
    padding-right: 8px;
}

.emoji-suggestions::-webkit-scrollbar {
    width: 8px;
}

.emoji-suggestions::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.emoji-suggestions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.emoji-suggestions::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.emoji-suggestion {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.emoji-suggestion:hover {
    background: #f1f5ff;
    border-color: #4f46e5;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.emoji-suggestion.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    margin-right: 14px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input:checked + .radio-custom {
    border-color: #4f46e5;
    background-color: #4f46e5;
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Color Picker */
.emoji-monochrome-color {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

#emoji-mono-color {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#emoji-mono-color:hover {
    border-color: #4f46e5;
    transform: translateY(-1px);
}

/* Settings Group */
.settings-group {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #eef2ff;
}

.settings-group h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area:hover {
    border-color: #4f46e5;
    background: #f1f5ff;
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 4rem;
    color: #94a3b8;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.upload-area:hover i {
    color: #4f46e5;
    transform: scale(1.1);
}

.upload-area p {
    color: #475569;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.upload-area span {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: underline;
}

#image-upload {
    display: none;
}

.image-preview-container {
    margin-top: 20px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.image-preview {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.remove-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Select and Inputs */
select, input[type="text"] {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

select:focus, input[type="text"]:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.color-input-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

#bg-color {
    width: 70px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#bg-color:hover {
    border-color: #4f46e5;
    transform: scale(1.05);
}

#bg-color-text {
    flex: 1;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.primary-btn, .secondary-btn {
    flex: 1;
    padding: 20px;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.secondary-btn {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.secondary-btn:hover {
    background: #f1f5f9;
    color: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Instructions */
.instructions {
    margin-top: 40px;
    padding: 28px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    border-radius: 18px;
    border-left: 6px solid #4f46e5;
    position: relative;
    overflow: hidden;
}

.instructions::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.instructions h3 {
    margin-bottom: 18px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.instructions ol {
    padding-left: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.instructions li {
    margin-bottom: 12px;
    color: #374151;
    font-weight: 500;
}

.instructions li strong {
    color: #4f46e5;
}

.tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    position: relative;
    z-index: 1;
}

.tip i {
    color: #f59e0b;
    font-size: 1.4rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip div {
    flex: 1;
}

.tip strong {
    color: #d97706;
}

/* Preview Section */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.preview-container {
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2ff;
}

.preview-container h2 {
    font-size: 1.9rem;
    margin-bottom: 28px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.favicon-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.favicon-display {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.05);
}

#favicon-canvas {
    max-width: 100%;
    max-height: 100%;
    display: none;
    border-radius: 20px;
}

.favicon-placeholder {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
}

.favicon-placeholder i {
    font-size: 6rem;
    margin-bottom: 20px;
    color: #cbd5e1;
    opacity: 0.7;
}

.favicon-placeholder p {
    font-size: 1.3rem;
    font-weight: 600;
}

.favicon-sizes {
    width: 100%;
    text-align: center;
}

.size-label {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 600;
}

.size-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.size-box {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.size-box:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.size-box.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* Download Section */
.download-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eef2ff;
    animation: slideUp 0.5s ease;
}

.download-section h3 {
    margin-bottom: 16px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
}

.download-description {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.download-btn {
    padding: 22px;
    background: white;
    border: 2px solid #e2e8f0;
    color: #4f46e5;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.code-snippet {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    padding: 28px;
    margin-top: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.code-snippet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 70%, rgba(79, 70, 229, 0.1));
}

.code-snippet h4 {
    margin-bottom: 20px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.code-snippet pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-snippet code {
    color: #7dd3fc;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    line-height: 1.5;
}

.copy-btn {
    width: 100%;
    padding: 18px;
    background: rgba(79, 70, 229, 0.2);
    backdrop-filter: blur(10px);
    color: #c7d2fe;
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.copy-btn:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Features */
.features {
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2ff;
}

.features h3 {
    margin-bottom: 24px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
}

.features ul {
    list-style-type: none;
}

.features li {
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.features li:hover {
    border-color: #4f46e5;
    transform: translateX(8px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1);
}

.features li i {
    color: #10b981;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.features li strong {
    color: #1e293b;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 40px;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer p {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer strong {
    color: #fbbf24;
    font-weight: 700;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px 28px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    display: none;
    z-index: 1000;
    animation: slideIn 0.4s ease;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification i {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.notification p {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .controls-section {
        position: static;
    }
    
    .download-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        border-radius: 16px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }
    
    .logo-container h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .controls-section, .preview-container, .features {
        padding: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .color-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    #bg-color {
        width: 100%;
        height: 50px;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
    
    .size-preview {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .favicon-display {
        width: 280px;
        height: 280px;
    }
    
    .emoji-categories {
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }
    
    .emoji-suggestion {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .tab-btn {
        font-size: 1rem;
        padding: 14px 10px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .header, .main-content {
        padding: 20px;
    }
    
    .logo-container h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .home-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 12px 8px;
    }
    
    .favicon-display {
        width: 240px;
        height: 240px;
    }
    
    .size-box {
        width: 70px;
        height: 70px;
        font-size: 0.9rem;
    }
    
    .emoji-suggestion {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    .emoji-suggestions {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 10px;
    }
    
    .instructions, .features, .code-snippet {
        padding: 20px;
    }
}