#qrContainer {
    display: inline-block;
    margin: 20px auto;
    position: relative;
    max-width: 100%;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

#qrContainer canvas {
    max-width: 100%;
    border-radius: 6px;
}

body {
    font-family: 'Vazirmatn', Arial, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.7);
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #161b22;
    border: 1px solid #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2), inset 0 0 15px rgba(0, 242, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.nav-tabs {
    border-bottom: 1px solid #00f2ff;
}

.nav-tabs .nav-link {
    background-color: transparent;
    border: 1px solid transparent;
    color: #c9d1d9;
    transition: all 0.3s ease-in-out;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #00f2ff;
    background-color: #1c2a38;
    border-color: #00f2ff #00f2ff #1c2a38;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: #00f2ff;
    color: #00f2ff;
    background-color: #1f242c;
}

.tab-content {
    margin-top: 20px;
    background-color: transparent;
    padding: 20px;
    border-radius: 5px;
    border: none;
}

.form-control, .form-select {
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

.form-control:focus, .form-select:focus {
    color: #c9d1d9;
    background-color: #161b22;
    border-color: #00f2ff;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 242, 255, 0.25);
}

.form-control::placeholder {
    color: #6a737d;
}

.form-label {
    color: #c9d1d9;
    text-shadow: 0 0 2px rgba(0, 242, 255, 0.5);
}

.btn {
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    color: #0d1117;
    background-color: #00f2ff;
    border-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #27f5ff;
    border-color: #27f5ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.8);
    transform: scale(1.05);
}

.btn-success {
    color: #fff;
    background-color: #2da44e;
    border-color: #2da44e;
    box-shadow: 0 0 10px rgba(45, 164, 78, 0.5);
}

.btn-success:hover, .btn-success:focus {
    background-color: #35c55d;
    border-color: #35c55d;
    box-shadow: 0 0 20px rgba(45, 164, 78, 0.8);
    transform: scale(1.05);
}

.btn.text-secondary, .btn-outline-secondary {
    color: #00f2ff;
    background-color: transparent;
    border: 1px solid #00f2ff;
}

.btn.text-secondary:hover, .btn-outline-secondary:hover {
    color: #0d1117;
    background-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

#output {
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    min-height: 150px;
}

#generatedImage {
    border: 2px solid #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

input[type="color"] {
    min-height: 38px;
    padding: 2px;
    border-radius: 5px;
    border: 1px solid #30363d;
    background: #0d1117;
}

input[type=color]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type=color]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.row.g-3 .col-md-6 {
    flex: 0 0 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
}

@media (max-width: 768px) {
    .row.g-3 .col-md-6 {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

/* Scrollbar Dark Theme */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    border: none;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255,0.4);
}

/* Firefox dark scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.content-section {
    padding-top: 20px;
}

.content-section h1 {
    font-size: 1.5rem; /* Equivalent to h4 in Bootstrap */
    margin-bottom: 1rem;
    text-align: right;
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}