
/* Page container */
.tool-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Header (title + description) */
.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

.tool-header p {
    color: #666;
    font-size: 1rem;
}

/* Tool box (VERY important) */
.tool-box {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}
.qr-result {
    margin-top: 20px;
    padding: 24px;
    min-height: 280px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/* QR image/canvas generated by qrcodejs */
.qr-result img,
.qr-result canvas {
    width: 256px;
    height: 256px;

    padding: 12px;
    background: white;

    border-radius: 8px;
}

.qr-placeholder {
    color: #777;
    font-size: 14px;
}
.qr-options {
    display:flex;
    gap:20px;
    margin:15px 0;
}

.qr-options label {
    display:flex;
    flex-direction:column;
    gap:6px;
    font-size:14px;
    
}

.qr-options select {
    padding:8px;
    border-radius:6px;
}

.generator-checkbox {
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

.generator-checkbox input {
    margin:0;
}
.generator-number {
    display:flex;
    align-items:center;
    gap:10px;
}
/* Inputs (works for ALL tools) */
input, select, button {
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
}



/* Result box */
.result {
    margin-top: 15px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    font-weight: 600;
}

/* Related tools section */
.tool-related {
    margin-top: 40px;
}

.tool-related h3 {
    margin-bottom: 15px;
}

.tool-related a {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.tool-related a:hover {
    transform: translateX(4px);
}
.field {
    margin-top: 20px;
}
.swap-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    margin: 1rem auto;
    display: block;
}
.rec-reason {
    font-size: 0.8rem;
    color: #777;
}
.rec-reason {
    opacity: 0;
    transition: 0.2s;
}

.rec-card:hover .rec-reason {
    opacity: 1;
}
/* Mobile responsiveness */
@media (max-width: 600px) {
    .tool-page {
        padding: 15px;
        margin: 20px auto;
    }

    .tool-box {
        padding: 15px;
    }
}