/* -------------------------------------------------
   GLOBAL STYLES
------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #0e0e0e;
    color: #ffffff;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 22px;
}

h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
}

.muted {
    color: #b5b5b5;
    font-size: 14px;
}


/* -------------------------------------------------
   NAVBAR
------------------------------------------------- */

.navbar {
    width: 100%;
    padding: 15px 25px;
    background: #161616;
    border-bottom: 1px solid #242424;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.nav-links a {
    color: #eaeaea;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #5b7cff;
}


/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */

.btn,
.primary-btn,
.download-btn {
    padding: 12px 20px;
    background: #4d75ff;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}

.btn:hover,
.primary-btn:hover,
.download-btn:hover {
    background: #3b5dd9;
}

.btn:active,
.primary-btn:active,
.download-btn:active {
    transform: scale(0.97);
}


/* -------------------------------------------------
   TEXTAREA & INPUTS
------------------------------------------------- */

.input,
textarea,
input[type="text"],
input[type="file"] {
    width: 100%;
    background: #161616;
    border: 1px solid #2b2b2b;
    color: #e1e1e1;
    padding: 14px;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 15px;
    transition: 0.2s;
}

.input:focus,
textarea:focus,
input[type="text"]:focus {
    border-color: #4e7bff;
    outline: none;
    box-shadow: 0 0 5px rgba(78, 123, 255, 0.4);
}


/* -------------------------------------------------
   TOOL CONTAINERS
------------------------------------------------- */

.tool-container {
    display: grid;
    gap: 20px;
    padding: 20px;
}

.upload-box,
.options-box,
.output-box {
    background: #151515;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #252525;
}


/* QR Scanner Camera Box */

#cameraPreview {
    border: 1px solid #333;
    background: #000;
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}


/* -------------------------------------------------
   FORM ROWS
------------------------------------------------- */

.form-row {
    margin: 20px 0;
}


/* -------------------------------------------------
   RESPONSIVE
------------------------------------------------- */

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .nav-links a {
        display: inline-block;
        margin: 10px 8px;
    }
    h1 {
        font-size: 26px;
    }
    .container {
        margin-top: 40px;
    }
}