:root {
    --primary: #6c63ff;
    --background: #1a1a1a;
    --surface: #2d2d2d;
    --text: #ffffff;
    --error: #ff6b6b;
    --success: #69db7c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    opacity: 0.9;
}

input {
    width: 100%;
    padding: 1rem;
    background-color: var(--background);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

button:active {
    transform: translateY(0);
}

.error {
    color: var(--error);
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 107, 107, 0.1);
    margin-bottom: 1rem;
    animation: shake 0.5s ease;
}

.qr-result {
    margin-top: 2rem;
    text-align: center;
    perspective: 1000px;
}

.qr-result img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: rotateIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.color-picker input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: none;
    cursor: pointer;
}

.color-picker span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.file-input {
    border: 2px dashed rgba(255,255,255,0.2);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--background);
}

.file-info {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    text-align: center;
}

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

.color-options input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: none;
    cursor: pointer;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.download-btn {
    display: none;
}

input[type="color"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.logo-size-control {
    margin-top: 1rem;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background);
    outline: none;
    margin-top: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.size-warning {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
}

.logout-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--error);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.current-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.remove-logo {
    background: var(--error);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    width: auto;
}

.remove-logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateX(-90deg) scale(0.7);
    }
    50% {
        transform: rotateX(20deg) scale(1.05);
    }
    to {
        opacity: 1;
        transform: rotateX(0deg) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }

    .logout-btn {
        bottom: 1rem;
        right: 1rem;
    }
}
