/* QR Code Generator Specific Styles */

.tool-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Generator Card */
.generator-card {
    background: white;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.dark-mode .generator-card {
    background: #1f2937;
    border-color: #374151;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 1rem;
}

.dark-mode .input-group label {
    color: #f9fafb;
}

.text-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 1rem;
    background: white;
    color: #111827;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    box-sizing: border-box;
}

.dark-mode .text-input {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.text-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.text-input::placeholder {
    color: #9ca3af;
}

.options-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group.half {
    flex: 1;
    margin-bottom: 0;
}

.select-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    font-size: 1rem;
    background: white;
    color: #111827;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 45px;
}

.dark-mode .select-input {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.select-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.select-input option {
    background: white;
    color: #111827;
    padding: 10px;
}

.dark-mode .select-input option {
    background: #1f2937;
    color: #f9fafb;
}

.generate-btn {
    width: 100%;
    padding: 16px 30px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.generate-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px #3b82f6;
}

.generate-btn i {
    margin-right: 8px;
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* QR Result Section */
.qr-result {
    margin-top: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
}

.dark-mode .qr-code-container {
    background: white; /* QR codes need light background */
    border-color: #374151;
}

.qr-code-container canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.qr-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 60px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dark-mode .action-btn {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

.action-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.dark-mode .action-btn:hover {
    background: #4b5563;
}

.action-btn i {
    font-size: 1rem;
}

/* Info Section */
.info-section {
    background: #f9fafb;
    border-radius: 30px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e5e7eb;
}

.dark-mode .info-section {
    background: #111827;
    border-color: #374151;
}

.info-section h3 {
    font-size: 1.3rem;
    margin: 20px 0 15px;
    color: #111827;
}

.dark-mode .info-section h3 {
    color: #f9fafb;
}

.info-section h3:first-child {
    margin-top: 0;
}

.info-section p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dark-mode .info-section p {
    color: #9ca3af;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    padding: 8px 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-mode .info-section ul li {
    color: #9ca3af;
}

.info-section ul li i {
    width: 20px;
    font-size: 1.1rem;
}

/* Ad Containers */
.ad-container {
    margin: 20px 0;
}

.ad-banner {
    text-align: center;
}

.ad-banner p {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ad-placeholder {
    background: #f3f4f6;
    border: 2px dashed #e5e7eb;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9ca3af;
}

.dark-mode .ad-placeholder {
    background: #1f2937;
    border-color: #374151;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .generator-card {
        padding: 25px;
    }
    
    .options-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-group.half {
        width: 100%;
    }
    
    .qr-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .generator-card {
        padding: 20px;
    }
    
    .text-input,
    .select-input {
        padding: 14px 16px;
    }
    
    .generate-btn {
        padding: 14px;
    }
    
    .qr-code-container {
        padding: 15px;
    }
}