* {
    box-sizing: border-box;
}

body {

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f8fafc;

    color: #1f2937;

}


.container {

    max-width: 850px;

    margin: 50px auto;

    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

}


.brand {

    text-align: center;

    color: #2563eb;

    margin-bottom: 10px;

}


h1 {

    text-align: center;

    margin-bottom: 10px;

}


p {

    text-align: center;

    color: #6b7280;

    margin-bottom: 30px;

}


textarea {

    width: 100%;

    height: 140px;

    padding: 15px;

    font-size: 17px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    resize: vertical;

    outline: none;

}


textarea:focus {

    border-color: #2563eb;

}


.buttons {

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;

    margin-top: 25px;

}


button {

    background: #2563eb;

    color: white;

    border: none;

    padding: 12px 25px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 16px;

    transition: 0.2s;

}


button:hover {

    background: #1d4ed8;

}


.qr-box {

    margin-top: 40px;

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 280px;

}


#qrcode {

    padding: 20px;

    background: white;

    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

}


.how-it-works {

    margin-top: 50px;

    background: #f9fafb;

    padding: 30px;

    border-radius: 15px;

}


.how-it-works h2 {

    text-align: center;

    margin-bottom: 20px;

}


.how-it-works ol {

    line-height: 2;

    color: #374151;

}


footer {

    margin-top: 50px;

    text-align: center;

    color: #6b7280;

    font-size: 15px;

}


@media (max-width: 768px) {

    .container {

        margin: 20px;

        padding: 25px;

    }

    .buttons {

        flex-direction: column;

    }

    button {

        width: 100%;

    }

}

/* =====================================
   Navigation
====================================== */

nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 40px;

    background:white;

    border-bottom:1px solid #e5e7eb;

    position:sticky;

    top:0;

    z-index:1000;

}


.logo a{

    color:#1f2937;

    text-decoration:none;

    font-size:22px;

    font-weight:bold;

}


.nav-links{

    display:flex;

    gap:25px;

}


.nav-links a{

    color:#4b5563;

    text-decoration:none;

    font-weight:600;

    transition:.2s;

}


.nav-links a:hover{

    color:#2563eb;

}


/* =====================================
   Back to Top
====================================== */

#backToTop{

    position:fixed;

    bottom:30px;

    right:30px;

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:24px;

    font-weight:bold;

    cursor:pointer;

    display:none;

    align-items:center;

    justify-content:center;

    box-shadow:0 6px 18px rgba(0,0,0,.18);

    transition:.2s;

    z-index:999;

}


#backToTop:hover{

    background:#1d4ed8;

    transform:translateY(-3px);

}


#backToTop:active{

    transform:scale(.95);

}


/* =====================================
   Mobile Navigation
====================================== */

@media(max-width:700px){

    nav{

        padding:18px 20px;

    }


    .nav-links{

        gap:14px;

        font-size:14px;

    }


    #backToTop{

        width:46px;

        height:46px;

        right:20px;

        bottom:20px;

        font-size:21px;

    }

}

/* =====================================
   Print Page Brand
====================================== */

.print-brand {

    text-align: center;

    font-size: 22px;

    font-weight: bold;

    color: #2563eb;

    margin-bottom: 25px;

}

/* =====================================
   QR Code Button Colors
====================================== */

.generate-button {

    background: #16a34a;

}


.generate-button:hover {

    background: #15803d;

}


.print-button {

    background: #6b7280;

}


.print-button:hover {

    background: #4b5563;

}


.clear-button {

    background: #dc2626;

}


.clear-button:hover {

    background: #b91c1c;

}

/* =====================================
   Tools Dropdown Navigation
====================================== */

.tools-dropdown {

    position: relative;

    display: inline-block;

}


.tools-dropdown-button {

    background: none;

    border: none;

    color: #4b5563;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    padding: 0;

    margin: 0;

}


.tools-dropdown-button:hover {

    background: none;

    color: #4b5563;

}


/* Dropdown menu */

.tools-dropdown-menu {

    display: none;

    position: absolute;

    right: 0;

    top: 100%;

    width: 240px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);

    padding: 8px;

    z-index: 2000;

}


/* Keep dropdown open while hovering */

.tools-dropdown:hover .tools-dropdown-menu {

    display: block;

}


/* Dropdown links */

.tools-dropdown-menu a {

    display: block;

    padding: 11px 14px;

    color: #374151;

    text-decoration: none;

    border-radius: 8px;

    font-size: 15px;

}


.tools-dropdown-menu a:hover {

    background: #f3f4f6;

    color: #2563eb;

}


/* Current tool */

.tools-dropdown-menu a.current-tool {

    background: #eff6ff;

    color: #2563eb;

    font-weight: bold;

}


.tools-dropdown-menu a.current-tool:hover {

    background: #dbeafe;

    color: #1d4ed8;

}
/* =====================================
   QR Code Generator - Mobile Improvements
====================================== */

@media (max-width:700px){

    body{
        overflow-x:hidden;
    }


    .container{

        width:calc(100% - 30px);

        max-width:none;

        margin:15px auto;

        padding:20px 16px;

        border-radius:18px;

    }


    .brand{

        font-size:21px;

        margin-bottom:10px;

    }


    h1{

        font-size:30px;

        line-height:1.2;

        margin-bottom:12px;

    }


    p{

        font-size:15px;

        line-height:1.6;

        margin-bottom:22px;

    }


    /* QR text input */

    textarea{

        height:150px;

        padding:14px;

        font-size:16px;

        line-height:1.5;

        border-radius:11px;

    }


    /* Buttons */

    .buttons{

        flex-direction:column;

        align-items:center;

        gap:10px;

        margin-top:20px;

    }


    .buttons button{

        width:100%;

        max-width:280px;

        padding:13px 20px;

        font-size:16px;

    }


    /* QR Code */

    .qr-box{

        margin-top:30px;

        min-height:240px;

        padding:10px;

        overflow:hidden;

    }


    #qrcode{

        max-width:100%;

        padding:15px;

        border-radius:14px;

    }


    #qrcode img,
    #qrcode canvas{

        max-width:100%;

        height:auto;

    }


    /* How it works */

    .how-it-works{

        margin-top:30px;

        padding:22px 18px;

        border-radius:14px;

    }


    .how-it-works h2{

        font-size:22px;

        line-height:1.3;

        margin-bottom:15px;

    }


    .how-it-works ol{

        padding-left:20px;

        font-size:15px;

        line-height:1.7;

    }


    /* Print page brand */

    .print-brand{

        font-size:20px;

        margin-bottom:20px;

    }


    /* Back to top */

    #backToTop{

        width:46px;

        height:46px;

        min-height:46px;

        right:20px;

        bottom:20px;

        padding:0;

        font-size:21px;

    }

}

/* =====================================
   Share This Tool
====================================== */

.share-section {

    width: 100%;

    max-width: 700px;

    margin: 60px auto 40px auto;

    padding: 35px 25px;

    text-align: center;

    background: #f3f4f6;

    border-radius: 16px;

}


.share-section h2 {

    margin: 0 0 10px 0;

    text-align: center;

}


.share-section p {

    color: #6b7280;

    margin: 0 auto 20px auto;

    text-align: center;

}


#shareButton {

    display: block;

    margin: 0 auto;

    background: #2563eb;

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 10px;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s;

}


#shareButton:hover {

    background: #1d4ed8;

}