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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding-top: 60px; /* Space for fixed navbar */
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Make SVG white */
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-contact {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.contact-item {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    opacity: 1;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

#ca-copy-btn {
    cursor: pointer;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

.contact-item:hover {
    opacity: 1;
}

.contact-link {
    text-decoration: none;
    color: inherit;
}

.contact-link:hover {
    opacity: 1;
    color: #8b5cf6;
}

.x-logo {
    width: 14px;
    height: 14px;
    margin-right: 0.3rem;
    flex-shrink: 0;
}

#ca-copy-btn:hover {
    opacity: 1;
    color: #8b5cf6;
}

#ca-copy-btn.copied {
    color: #00ff88;
}

.container {
    display: flex;
    min-height: 100vh;
    padding: 3rem;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.left-section {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
}

.title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.upload-btn {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.upload-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.name-input {
    background: transparent;
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.name-input::placeholder {
    color: #9ca3af;
}

.name-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Username input styling */
#username {
    background: transparent;
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
    width: 100%;
}

#username::placeholder {
    color: #9ca3af;
}

#username:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Image size slider styles */
.input-group label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

#image-size-slider,
#text-size-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 0.5rem;
}

#image-size-slider::-webkit-slider-thumb,
#text-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#image-size-slider::-moz-range-thumb,
#text-size-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#size-value,
#text-size-value {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Advanced Text Placement Section */
.advanced-section {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
}

.section-toggle {
    background: transparent;
    border: none;
    color: #8b5cf6;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.section-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.section-content {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Position value styling - match other sliders */
#text-position-value,
#text-horizontal-position-value {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.generate-btn {
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

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

/* Generate button styling */
#generate-btn {
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

#generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

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

.right-section {
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 2rem;
}

.image-display {
    width: 400px;
    height: 400px;
    background: #000000;
    border-radius: 16px;
    border: 2px solid;
    border-image: linear-gradient(45deg, #8b5cf6, #3b82f6) 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: grab;
    user-select: none;
}

.image-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    pointer-events: none;
}

.image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

/* Drag hint styling */
.drag-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.drag-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.hint-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-text::before {
    content: "🖱️";
    font-size: 1rem;
}

/* Toggle switch styling */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-text {
    font-weight: 500;
    color: #ffffff;
}

.social-text {
    color: #ffffff;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.share-x-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #1da1f2;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 180px;
}

.share-x-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.2);
}

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

.button-hint {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    color: #ffffff;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    width: 100%;
    max-width: 360px;
    justify-content: center;
}

.download-btn {
    background: transparent;
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #8b5cf6;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }
    
    .navbar {
        height: 50px;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-logo {
        height: 30px;
    }
    
    .nav-contact {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .contact-item {
        font-size: 12px;
    }
    
    .container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .left-section,
    .right-section {
        max-width: 100%;
    }
    
    .title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .image-display {
        width: 300px;
        height: 300px;
    }
}

/* Preview section styles */
.preview-section {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-section h3 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #8b5cf6;
    display: block;
} 