* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #101010 0%, #696969 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 30px;
}
.def{
    color: #fff;
    margin-bottom: 20px;
    font-size: 50px;
    text-align: 
}

header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #101010 0%, #696969 100%);
    color: white;
    margin: -30px -30px 30px -30px;
    border-radius: 20px 20px 0 0;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 15px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #808080;
}

.tab-btn.active {
    background: white;
    color: #080808;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.input-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.output-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

label i {
    margin-right: 8px;
    color: #080808;
}

textarea, input[type="text"], select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

textarea:focus, input[type="text"]:focus, select:focus {
    border-color: #667eea;
    outline: none;
}

input[type="range"] {
    width: calc(100% - 60px);
    margin-right: 10px;
}

input[type="color"] {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.generate-btn {
    width: 100%;
    padding: 16px;
    background: #080808;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.preview-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
}

#qr-preview, #barcode-preview {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 20px;
}

#qr-preview p, #barcode-preview p {
    color: #666;
    font-style: italic;
}

.preview-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.download-btn, .share-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn {
    background: #080808;
    color: white;
}

.download-btn:hover:not(:disabled) {
    background: #218838;
}

.share-btn {
    background: #808080;
    color: white;
}

.share-btn:hover:not(:disabled) {
    background: #138496;
}

.download-btn:disabled, .share-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.history-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.history-section h3 {
    margin-bottom: 20px;
    color: #333;
}

#history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.history-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.history-item:hover {
    transform: translateY(-5px);
}

.history-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #666;
    border-top: 1px solid #eee;
}

footer i.fa-heart {
    color: #ff4757;
}

/* Responsive Design */
@media (max-width: 992px) {
    .generator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .container {
        padding: 20px;
    }
    
    header {
        margin: -20px -20px 20px -20px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .preview-controls {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

