﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.tool-container {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
}

.tool-title {
    font-size: 28px;
    font-weight: 600;
}

.tool-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.drop-zone {
    border: 2px dashed #999;
    border-radius: 10px;
    padding: 40px;
    cursor: pointer;
    background: #fafafa;
    transition: 0.3s;
}

    .drop-zone.dragover {
        background: #e8f0fe;
        border-color: #1a73e8;
    }
    .drop-zone p {
        color: #272727;
        font-weight: 700;
    }

.preview-area {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

.preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

    .preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    width: 25px;
    height: 25px;
    line-height: 20px;
}

.progress {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #00bfa5);
    transition: width 0.3s ease;
}

.success-msg, .error-msg {
    margin-top: 15px;
    font-weight: 500;
}

.download-link {
    display: block;
    margin: 8px auto;
    text-decoration: none;
    color: #fff;
    background: #00bfa5;
    padding: 8px 20px;
    border-radius: 6px;
    width: fit-content;
    transition: 0.3s;
}

    .download-link:hover {
        background: #009f8b;
        color:#fff
    }

.diff-line {
    display: flex;
    align-items: stretch;
    padding: 3px 0;
    font-family: monospace;
    border-bottom: 1px solid #ddd;
}

    .diff-line.same {
        background-color: #f8f9fa;
    }

    .diff-line.diff {
        background-color: #fff0f0;
    }

    .diff-line .num {
        width: 40px;
        text-align: right;
        padding-right: 10px;
        color: #888;
        background: #f0f0f0;
    }

    .diff-line .left,
    .diff-line .right {
        flex: 1;
        white-space: pre-wrap;
        padding: 3px 6px;
    }

    .diff-line .controls {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 5px;
    }

        .diff-line .controls button {
            border: none;
            background: #ddd;
            color: #333;
            padding: 2px 5px;
            margin: 2px 0;
            border-radius: 3px;
            font-weight: bold;
            cursor: pointer;
        }

            .diff-line .controls button:hover {
                background: #bbb;
            }

.diff-word-changed {
    background-color: #ffcaca;
    font-weight: bold;
}

.diff-line.merged {
    background-color: #e6ffe6 !important; /* Soft green */
    transition: background-color 0.4s ease;
}

.merged-btn {
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
}

.max-width100{ max-width:100% !important}


.drop-zone {
    border: 2px dashed rgba(80, 85, 90, 0.3);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

    .drop-zone.dragover {
        border-color: #1572e8;
        background-color: rgba(21, 114, 232, 0.04);
    }

.preview-area {
    margin-top: 24px;
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .preview-area {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.preview-card {
    border: 1px solid rgba(128, 138, 157, 0.2);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.preview-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.preview-remove-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease;
}

    .preview-remove-btn:hover,
    .preview-remove-btn:focus {
        color: #e53e3e;
        background-color: rgba(229, 62, 62, 0.1);
        outline: none;
    }

    .preview-remove-btn:focus-visible {
        box-shadow: 0 0 0 3px rgba(21, 114, 232, 0.35);
    }

.preview-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

    .preview-images figure {
        border: 1px solid rgba(128, 138, 157, 0.2);
        border-radius: 10px;
        padding: 12px;
        background: #f8fafc;
    }

    .preview-images img {
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    }

.preview-meta {
    font-size: 13px;
    line-height: 1.6;
    color: #4a5568;
}

    .preview-meta strong {
        color: #1a202c;
    }

.options-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.options-grid label {
    font-weight: 600;
    color: #1a202c;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.range-value {
    font-weight: 500;
    color: #1572e8;
}

.message {
    margin-top: 16px;
    font-size: 14px;
}

    .message.error {
        color: #e53e3e;
    }

    .message.success {
        color: #2f855a;
    }

.download-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

    .download-group a {
        flex: 1 1 150px;
    }
/* QR Code Generator page styles */
.qr-generator-page .icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.qr-generator-page .qr-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.05));
}

.qr-hero-showcase .card {
    min-width: 140px;
}

.qr-hero-showcase canvas {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 12px;
}

.qr-preview-wrapper {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 18px;
    padding: 1.5rem;
}

.qr-preview-area {
    min-height: 280px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    padding: 1rem;
}

.qr-preview-area canvas {
    max-width: 100%;
    height: auto;
}

.qr-logo-actions > * {
    margin-right: 0.75rem;
}

.qr-logo-actions > *:last-child {
    margin-right: 0;
}

.qr-logo-preview {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-logo-preview img {
    max-width: 100%;
    max-height: 100%;
}

.qr-tips-list li {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.badge-lg {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    .qr-preview-area {
        min-height: 220px;
    }

    .qr-preview-wrapper {
        padding: 1rem;
    }
}





.tool-step {
    margin-top: 2rem;
}

    .tool-step:first-of-type {
        margin-top: 0;
    }

    .tool-step h2 {
        display: flex;
        align-items: center;
        font-weight: 700;
        font-size: 1.15rem;
    }

    .tool-step .step-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-right: 0.75rem;
        border-radius: 50%;
        background: #0f172a;
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
    }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.preview-card {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.35);
}

    .preview-card h3 {
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

.preview-stage {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .preview-stage img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: inherit;
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
    }

.preview-grid.is-disabled {
    opacity: 0.4;
}

.preview-placeholder {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 0;
}

.advanced-accordion .card {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem !important;
    overflow: hidden;
}

    .advanced-accordion .card + .card {
        margin-top: 1rem;
    }

.advanced-accordion .card-header {
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.advanced-accordion .btn-link {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .advanced-accordion .btn-link:hover,
    .advanced-accordion .btn-link:focus {
        text-decoration: none;
        color: #0f172a;
    }

.advanced-accordion .collapse .card-body {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tool-actions .btn {
    min-width: 180px;
}

.preview-caption {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    color: #4b5563;
}

input[type="color" i]::-webkit-color-swatch {
    padding: 20px 0 !important
}