body {
    background: #f8f9fa;
    /* padding: 30px; */
}

/* Header */
.site-header {
    background-color: #1a252f;
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    position: relative;
    top: -2px;
    filter: drop-shadow(0 0 3px rgb(255, 255, 255));
}

.logo a span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bolder;
    background: linear-gradient(to right, #aa00ff, #0015ff, #1b9400, #ffae00, #ff0000, #ffae00, #1b9400, #0015ff, #aa00ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
    position: relative;
    top: -3px;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

@media (min-width: 350px) and (max-width:390px) {
    .nav-links a {
        margin: 0 0 0 10px;
    }

    .site-header {
        padding: 5px 10px;
    }
}

@media (min-width: 300px) and (max-width:350px) {
    .nav-links a {
        font-size: small;
        margin: 0 0 0 10px;
    }

    .logo {
        gap: 0;
    }

    .logo a span {
        font-size: 1.2rem;
        position: relative;
        top: -5px;
    }

    .site-header {
        padding: 5px 10px;
    }
}


.nav-tabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.tab-content {
    background: white;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

#qrcode canvas,
#qrcode svg {
    margin: 20px 0;
    display: block;
    max-width: 100%;
    height: auto;
}

#qrcode-frame {
    display: inline-block;
    position: relative;
    text-align: center;
}

/* Frame Templates */
.frame-classic {
    border: 6px solid;
    padding: 6px;
    border-radius: 8px;
}

.frame-rounded {
    border: 6px solid;
    padding: 12px;
    border-radius: 20px;
}

.frame-shadow {
    border: 0;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.frame-label-bottom {
    border: 6px dashed;
    padding: 6px;
    border-radius: 10px;
    background-color: #fff3f3;
    position: relative;
    font-weight: bold;
    font-size: 1rem;
    color: #dc3545;
}

.frame-label-bottom .label-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-weight: bold;
    font-size: 1rem;
    color: inherit;
}

.frame-glow {
    padding: 8px;
    border: 4px solid transparent;
    border-radius: 12px;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to right, #00f260, #0575e6) border-box;
}

.frame-scan-overlay {
    border: 6px solid;
    padding: 6px;
    border-radius: 12px;
    position: relative;
}

.frame-scan-overlay .scan-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d6efd;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    user-select: none;
}

.frame-scan-bottom {
    border: 6px solid;
    padding: 20px 6px 40px 6px;
    border-radius: 12px;
    position: relative;
}

.frame-scan-bottom .scan-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #198754;
    font-weight: bold;
    font-size: 1.1rem;
    user-select: none;
}

.settings-box {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-box h5 {
    margin-bottom: 15px;
    color: #0d6efd;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.size-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.custom-size-input {
    width: 120px;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.download-label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.format-options label {
    font-weight: bold;
    margin-right: 15px;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.form-check-input {
    margin-top: 0;
}

.modal-content {
    padding: 20px;
}

#filename {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* New Frame Templates */
.frame-dotted {
    border: 6px dotted;
    padding: 8px;
    border-radius: 12px;
}

.frame-neon {
    border: 3px solid;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 0 15px currentColor;
}

.frame-badge {
    position: relative;
    padding: 15px;
    border: 2px solid;
    border-radius: 10px;
}

.frame-badge::after {
    content: 'QR';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.frame-double {
    border: 6px double;
    padding: 10px;
    border-radius: 8px;
}

.frame-gradient {
    border: 4px solid transparent;
    border-radius: 12px;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(45deg, #ff6b6b, #4ecdc4) border-box;
}

/* Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.seo-section {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1rem;
  color: #212529;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: #4361ee;
  margin-bottom: 20px;
  border-bottom: 2px solid #4361ee;
  padding-bottom: 10px;
}

.seo-section h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #3f37c9;
}

.seo-section p {
  margin-bottom: 15px;
}

.seo-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ul li {
  margin-bottom: 10px;
}

.seo-section ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ol li {
  margin-bottom: 10px;
}

.seo-section strong {
  color: #4361ee;
}

.seo-section a {
  color: #3f37c9;
  text-decoration: underline;
}

.seo-section a:hover {
  text-decoration: none;
}

footer {
    text-align: center;
    margin: 30px;
}

footer p a {
    text-decoration: none;
    font-weight: bold;
    color: #aa00ff;
}