:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --background-color: #000000;
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --success-color: #50E3C2;
    --error-color: #ff6b6b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h2 i {
    color: var(--primary-color);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h2 {
    margin-bottom: 0;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--card-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

.upload-area.dragover {
    border-color: var(--secondary-color);
    background: rgba(80, 227, 194, 0.1);
    transform: scale(1.02);
}

.upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Image Preview */
.image-preview {
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.remove-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

/* Sizes Grid */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.size-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.size-option.selected {
    border-color: var(--secondary-color);
    background: rgba(80, 227, 194, 0.1);
}

.size-option input[type="checkbox"] {
    display: none;
}

.size-option label {
    cursor: pointer;
    display: block;
}

.size-option .size-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.size-option .size-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Favicons Grid */
.favicons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.favicon-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.favicon-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.favicon-preview {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.favicon-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.favicon-preview.small {
    width: 32px;
    height: 32px;
}

.favicon-preview.large {
    width: 96px;
    height: 96px;
}

.favicon-info {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.favicon-size {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.favicon-format {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.download-all-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.generate-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem auto 0;
    width: fit-content;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Instructions */
.instructions-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.instructions-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.info-box {
    background: rgba(80, 227, 194, 0.1);
    border: 1px solid rgba(80, 227, 194, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.info-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
}

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

.info-box ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.info-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

.toast.show {
    display: flex;
}

.toast i {
    color: var(--success-color);
    font-size: 1.2rem;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--card-border);
}

.app-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.app-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.app-footer .footer-link {
    color: var(--secondary-color);
}

.app-footer .footer-link:hover {
    color: var(--primary-color);
}

.app-footer .bmc-logo {
    display: inline-block;
    margin-top: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-footer .bmc-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-footer .bmc-logo img {
    height: 60px;
    width: 217px;
}

.app-footer .view-all-apps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 0 auto;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.app-footer .view-all-apps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 255, 0.3);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .sizes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .favicons-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.25rem;
    }

    .sizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .favicons-grid {
        grid-template-columns: 1fr;
    }
}

