/**
 * ZYZ DYNAMICS QR Code Generator - Clean Interface Styles
 * Simple, functional, beautiful
 */

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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Site Navigation */
.site-nav {
    border-bottom: 1px solid #222;
    padding: 20px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.current {
    color: #fff;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header - Match ZYZ standard */
.header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #222;
    padding-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.tool-title {
    font-size: 2.2em;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.tool-subtitle {
    font-size: 0.95em;
    color: #888;
    font-weight: 300;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Status Message */
.status-message {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 0.95em;
    text-align: center;
    min-height: 20px;
}

.status-message.info {
    border-color: #555;
    background: rgba(102, 126, 234, 0.1);
    color: #8fa7ff;
}

.status-message.success {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
}

.status-message.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    color: #ff8a8a;
}

/* Main Content - Two Panel Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 1000px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Control Panel */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Display Panel */
.display-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Section Styling */
.input-section,
.color-section,
.logo-section,
.generate-section,
.qr-display,
.export-section {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
}

.section-title {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Text Input */
.text-input-label {
    display: block;
    color: #ccc;
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: 500;
}

.text-input-container {
    position: relative;
}

.text-input {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95em;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.text-input::placeholder {
    color: #666;
    line-height: 1.4;
}

.character-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.8em;
    color: #666;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Color Controls */
.color-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: #ccc;
    font-size: 0.9em;
    font-weight: 500;
}

.color-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-group input[type="text"] {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.9em;
    transition: border-color 0.3s ease;
}

.color-input-group input[type="text"]:focus {
    outline: none;
    border-color: #555;
}

.color-input-group input[type="color"] {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.color-input-group input[type="color"]:hover {
    border-color: #555;
}

/* Logo Controls */
.logo-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-option-btn {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logo-option-btn:hover {
    background: #333;
    border-color: #555;
}

.logo-upload-area {
    flex: 1;
    border: 2px dashed #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-upload-area:hover {
    border-color: #555;
    background: rgba(102, 126, 234, 0.05);
}

.upload-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.upload-text {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.upload-subtext {
    color: #666;
    font-size: 0.8em;
}

.logo-file-input {
    display: none;
}

/* Logo Preview */
.logo-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.logo-preview-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-preview-name {
    flex: 1;
    color: #ccc;
    font-size: 0.9em;
}

.remove-logo-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-logo-btn:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

/* Generate Button */
.generate-button {
    width: 100%;
    background: #444;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* QR Display */
.qr-display {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#qr-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
}

.placeholder-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 1.1em;
}

/* Export Controls */
.export-formats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.export-format {
    background: #222;
    border: 1px solid #333;
    color: #ccc;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.export-format:hover {
    border-color: #555;
    color: #fff;
}

.export-format.selected {
    background: #444;
    border-color: #555;
    color: #fff;
}

/* Size Controls */
.size-controls {
    margin-bottom: 20px;
}

.size-controls label {
    display: block;
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 500;
}

.size-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.size-preset {
    background: #222;
    border: 1px solid #333;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.size-preset:hover {
    border-color: #555;
    color: #fff;
}

.size-preset.active {
    background: #444;
    border-color: #555;
    color: #fff;
}

#custom-size {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.9em;
    transition: border-color 0.3s ease;
}

#custom-size:focus {
    outline: none;
    border-color: #555;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 10px;
}

.export-button {
    flex: 1;
    background: #444;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-button:hover:not(:disabled) {
    background: #5a67d8;
}

.export-button.secondary {
    background: #333;
    border: 1px solid #555;
}

.export-button.secondary:hover:not(:disabled) {
    background: #444;
}

.export-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Footer */
.footer {
    border-top: 1px solid #222;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-content p {
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .tool-title {
        font-size: 2em;
    }
    
    .control-panel,
    .display-panel {
        padding: 15px;
    }
    
    .logo-controls {
        flex-direction: column;
    }
    
    .logo-option-btn {
        width: 100%;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .size-presets {
        justify-content: center;
    }
}


/* Logo option buttons - Updated styling */
.logo-upload-options {
    display: flex;
    gap: 15px;
    align-items: stretch;
    margin-bottom: 20px;
}

.logo-option-btn {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.logo-option-btn:hover {
    background: #444;
    border-color: #555;
}

/* Simple Footer */
footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #222;
    color: #888;
    font-size: 0.9em;
}

.footer-logo {
    width: 30px;
    height: 30px;
    filter: invert(0.4);
    opacity: 0.6;
    margin: 0 auto 15px;
    display: block;
}