*,
*:before,
*:after {
    box-sizing: inherit;
}

* {
    -webkit-touch-callout: none;
}

button,
a {
    user-select: none;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: white !important;
    -webkit-border-radius: 0px;
}

::-webkit-scrollbar:hover {
    background-color: rgba(0, 0, 0, 0.09);
}

::-webkit-scrollbar-thumb:vertical {

    background: rgba(0, 0, 0, 0.5);
    -webkit-border-radius: 0px;
}

::-webkit-scrollbar-thumb:vertical:active {
    background: rgba(0, 0, 0, 0.61);

}

html {
    position: relative;
    min-height: 100%;
}

.swal_qr_code {
    padding: 0px !important;
    min-height: none !important;
}

.swal_qr_code #swal2-title {
    display: none !important;
}

.swal_qr_code .swal2-image {
    margin: 0px !important;
}

#qr_upload {
    display: none;
}

#tools_menu {
    display: none;
    padding: 20px;
    background: #f8f9fb;
    min-height: 200px;
}

#page_info_modal_header {
    background-color: black;
    margin-bottom: 20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#qr_code_examples_text {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    list-style-type: square;
}

#qr_code_examples_text li {
    margin-top: 20px;
    margin-bottom: 20px;
}

#qr_code_examples {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
}

.close-button {
    height: 25px;
    width: 25px;
    position: relative;
    box-sizing: border-box;
    line-height: 50px;
    margin-top: 15px;
    display: inline-block;
    cursor: pointer;
}

.close-button:before,
.close-button:after {
    transform: rotate(-45deg);
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -5px;
    margin-left: -25px;
    display: block;
    height: 5px;
    width: 25px;
    background-color: #fff;
    transition: all 0.25s ease-out;
}

.close-button:after {
    transform: rotate(-135deg);
}

#page_info_modal {
    position: fixed;
    top: 5vh;
    height: 90vh;
    width: 90vw;
    left: 5vw;
    background-color: white;
    box-sizing: border-box;
    z-index: 201;
    border-radius: 5px;
}

#page_info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 235, 225, 0.8);
    z-index: 200;
    display: none;
}

#qr_code_management {
    display: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: auto;
    border: none;
    overflow: visible;
}

#qr_code_management_content {
    overflow-x: hidden;
}

#qr_code_management_content .table {
    table-layout: fixed;
    width: 100%;
}

#qr_code_management_content .table > tbody > tr {
    border-bottom: 1px solid #e5e7eb;
}

#qr_code_management_content .table > tbody > tr:nth-child(odd) {
    background-color: #f9fdf7;
}

#qr_code_management_content .table > tbody > tr:hover {
    background-color: #eef9ee;
}

#qr_code_management_content .table th,
#qr_code_management_content .table td {
    padding: 10px 12px;
}

#qr_code_management_content .table th:nth-child(1),
#qr_code_management_content .table td:nth-child(1) {
    width: 70px;
}

#qr_code_management_content .table td:nth-child(1) img {
    display: block;
    margin: 0 auto;
}

#qr_code_management_content .table th:nth-child(2),
#qr_code_management_content .table td:nth-child(2) {
    width: 240px;
}

#qr_code_management_content .table td:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

#qr_code_management_content .table th:nth-child(3),
#qr_code_management_content .table td:nth-child(3) {
    width: 220px;
    word-break: break-word;
}

#qr_code_management_content .table th:nth-child(4),
#qr_code_management_content .table td:nth-child(4) {
    width: 120px;
}

#qr_code_management_content .table th:nth-child(5),
#qr_code_management_content .table td:nth-child(5) {
    width: auto;
    word-break: break-word;
}

#qr_code_management_content .table th:nth-child(6),
#qr_code_management_content .table td:nth-child(6) {
    width: 160px;
    white-space: nowrap;
}

#qr_code_management_content .table th:nth-child(7),
#qr_code_management_content .table td:nth-child(7) {
    width: 90px;
    text-align: center;
}

#qr_code_management_content .table td:nth-child(7) h3 {
    margin: 0;
}

#qr_code_management button {
    font-size: 12px;
    background: linear-gradient(135deg, #41c129 0%, #2d8a1f 100%);
    color: white;
    font-family: 'Oswald', sans-serif;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    outline: none;
    display: inline-block;
    margin: 2px;
    width: auto;
    min-width: 80px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#qr_code_management button:hover {
    background: linear-gradient(135deg, #4dd135 0%, #359425 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#qr_code_management button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#qr_code_management_table {
    background-color: transparent;
}

#qr_code_management_table h3 {
    padding: 0;
    margin: 0;
}

#qr_code_management table .qr_code {
    width: 100px;
}

footer {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    height: auto;
    width: 100%;
    background: linear-gradient(135deg, rgba(38, 248, 237, 0.1), rgba(0, 0, 0, 0.1));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #333;
    box-sizing: border-box;
    text-align: center;
    font-size: 11px;
    z-index: 100;
    padding: 16px 12px;
    cursor: default;
    user-select: none;
    font-weight: 400;
    line-height: 1.4;
}

/* Manage page mobile override */
@media only screen and (max-width: 1000px) {
    #qr_code_management {
        padding: 0;
        width: 100%;
        margin-top: 20px;
    }
}

footer .footer_button {
    margin: 0 8px;
    color: #007BFF;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

footer .footer_button:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0056b3;
    text-decoration: none;
}

/* Responsive footer */
@media (max-width: 768px) {
    footer {
        font-size: 10px;
        padding: 12px 8px;
        text-align: center;
    }

    footer .footer_button {
        margin: 0 4px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    footer {
        font-size: 9px;
        padding: 10px 6px;
        line-height: 1.3;
    }

    footer .footer_button {
        display: block;
        margin: 2px auto;
        width: fit-content;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: #444;
    background-color: #26f8ed;
}

#mobile_nav_items {
    position: fixed;
    z-index: 10;
    top: 47px;
    left: 0;
    width: 100%;
    padding-top: 23px;
    padding-bottom: 23px;
    background-color: white;
}

#mobile_nav_items div {
    line-height: 46px;
    padding-left: 24px;
    cursor: pointer;
}

#mobile_nav_items div img {
    vertical-align: bottom;
    margin-right: 10px;
    margin-bottom: 12px;
}

#mobile_nav_outside_target {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.29);
}

.blurred {
    filter: blur(5px);
    transition: all 1s;
}

#invite {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
}

.notice {
    color: black;
    padding: 6px;
    text-align: center;
    font-size: 14px;
    line-height: 24px;
}

.notice img {
    vertical-align: middle;
}

.inverted {
    filter: invert(100%);
}

header {
    height: 63px;
    background-color: white;
}

@media only screen and (max-width: 1000px) {
    header {
        width: 100%;
        top: 0;
        left: 0;
        height: 48px;
        border-bottom: none;
        background-color: white;
        position: fixed;
        z-index: 2;
    }

    #qr_code_management {
        display: none;
        padding: 20px;
        margin-top: 20px;
        width: 96%;
        height: auto;
        border: none;
    }

    body {
        margin-top: 78px;
    }
}

.bulk-qr-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 20px;
}

.bulk-qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.bulk-qr-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#bulk_text {
    width: 100%;
    min-height: 240px;
    padding: 14px;
    border: 2px solid #aaffaa;
    border-radius: 10px;
    background: #f9fdf7;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}
#bulk_text:focus {
    outline: none;
    border-color: #41c129;
    box-shadow: 0 0 0 3px rgba(65, 193, 41, 0.15);
}

.bulk-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bulk-qr-container input[type="text"],
.bulk-qr-container input[type="search"],
.bulk-qr-container input[type="email"],
.bulk-qr-container input[type="file"]::file-selector-button {
    border: 2px solid #e5f9e5;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bulk-qr-container input[type="text"]:focus,
.bulk-qr-container input[type="search"]:focus,
.bulk-qr-container input[type="email"]:focus {
    outline: none;
    border-color: #41c129;
    box-shadow: 0 0 0 3px rgba(65, 193, 41, 0.15);
}

#bulk_results {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.bulk-qr-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
}

.bulk-qr-item.success {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.bulk-qr-item.error {
    background: #fff5f5;
    border-color: #feb2b2;
}

.file-label {
    display: block;
    border: 2px dashed #aaffaa;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    color: #4a5568;
    background: #f9fdf7;
}

.file-label input {
    display: none;
}

.bulk-qr-container #bulk_name_prefix {
    background: #fff;
}

.close-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    padding: 6px 12px;
}

.bulk-summary {
    font-size: 14px;
    color: #4a5568;
}

@media (max-width: 768px) {
    .bulk-qr-content {
        grid-template-columns: 1fr;
    }
    #bulk_text {
        min-height: 160px;
    }
}

#account_options {
    line-height: 63px;
    position: absolute;
    right: 0px;
    top: 0px;
    user-select: none;
}

#mobile_nav {
    display: none;
    width: 48px;
    height: 48px;
    position: fixed;
    top: 0;
    right: 0;
    background-image: url(../img/icons/menu.svg);
    background-repeat: no-repeat;
    background-position: center center;
    transition: all 1s;
}

@media only screen and (max-width: 1000px) {
    #account_options {
        display: none;
    }

    #mobile_nav {
        display: block;
    }
}

#account_options div {
    display: inline-block;
    font-size: 14px;
    margin-right: 40px;
    cursor: pointer;
    color: dimgray;
    transition: all 0.2s;
    background-image: url(../img/thin_line.png);
    background-position: -400px center;
    background-repeat: no-repeat;
    user-select: none;
    padding-right: 2px;
}

#account_options div:hover {
    background-image: url(../img/thin_line.png);
    background-position: 0px center;
    background-repeat: no-repeat;
    transition: all 0.6s;
}

#account_options img {
    vertical-align: middle;
    padding-bottom: 3px;
    opacity: 0.6;
    margin-right: 6px;
}

.help_switch {
    position: absolute;
    margin-top: -24px;
    margin-left: 130px;
    cursor: pointer;
    font-size: 12px;
}

.help_switch img {
    vertical-align: middle;
    padding-bottom: 3px;
    opacity: 0.6;
}

.card {
    background-color: transparent;
    border-radius: 6px;
}

#logo {
    cursor: pointer;
    user-select: none;
    margin-left: 32px;
    margin-top: 10px;
    height: 43px;
}

@media only screen and (max-width: 1000px) {
    #logo {
        display: none;
    }
}

#logo span {
    color: gold;
}

#qr_code {
    max-width: 240px;
    width: 100%;
    border: solid 20px #6dc326;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 6px;
}

#qr_code img {
    max-width: 200px;
    width: 100%;
}

a {
    color: #AD5643;
    text-decoration: none;
    transition: 0.3s;
}

#qr_types div {
    line-height: 24px;
    font-size: 14px;
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.2s;
    border-radius: 6px;
    user-select: none;
}

#qr_types .active {
    background-color: #A9FEA8;
}

#qr_types div:hover {
    background-color: #A9FEA8;
    transition: all 0.2s;
}

/* QR Type Descriptions */
#qr_type_descriptions {
    margin-top: 15px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: 0;
    margin-right: 0;
}

.qr-description {
    display: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
    border: 1px solid #d4edda;
    border-left: 4px solid #6dc326;
    position: relative;
    padding-left: 50px;
}

.qr-description::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('../img/icons/information-outline.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.qr-description.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#qr_types span {
    margin-left: 5px;
}

#qr_types img {
    vertical-align: middle;
    opacity: 0.6;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

#qr_generate,
#qr_download {
    width: 200px;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    background-color: white;
    font-family: 'Oswald', sans-serif;
    border: solid 2px #6dc326;
    cursor: pointer;
    outline: none;
    padding-top: 4px;
    margin-top: 50px;
    transition: all 0.2s;
    border-radius: 6px;
    user-select: none;
}

#qr_generate img,
#qr_download img {
    opacity: 0.6;
}

#qr_type_smart_id {
    display: none !important;
}

#qr_generate {
    margin-top: 50px;
    margin-bottom: 5px;
    display: block;
}

#qr_download {
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#qr_generate:hover,
#qr_download:hover {
    background-color: #A9FEA8;
    transition: all 0.2s;
}

#qr_generate img,
#qr_download img {
    margin-right: 10px;
    vertical-align: middle;
    padding-bottom: 3px;
}

main {
    width: 64%;
    margin-left: 2%;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    float: left;
    box-sizing: border-box;
}

@media only screen and (max-width: 1000px) {
    main {
        width: 96%;
        margin-left: 2%;
        margin-right: 2%;
        margin-top: 30px;
        margin-bottom: 0px;
        padding: 20px;
        float: none;
        box-sizing: border-box;
    }
}

aside {
    margin-top: 30px;
    margin-left: 2%;
    margin-bottom: 30px;
    padding: 20px;
    width: 30%;
    float: left;
    box-sizing: border-box;
}

@media only screen and (max-width: 1000px) {
    aside {
        margin-top: 30px;
        width: 96%;
        margin-left: 2%;
        margin-right: 2%;
        margin-bottom: 30px;
        padding: 20px;
        float: none;
        box-sizing: border-box;
    }
}

#qr_options {
    margin-top: 40px;
}

#qr_options input {
    outline: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 400px;
    border: none;
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

/* Specific styling for WiFi checkbox only */
#qr_options input#wifi_hidden {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin-top: 15px;
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    max-width: none !important;
}

/* Style WiFi checkbox label specifically */
#qr_options label[for="wifi_hidden"] {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    vertical-align: middle;
    width: auto;
}

/* Style WiFi select dropdown */
#qr_options select#wifi_security {
    background-color: white;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 400px;
    border: 1px solid #ddd;
    font-size: 16px;
    padding: 10px;
    transition: all 0.3s;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
}

#qr_options select#wifi_security:hover {
    border-color: #A9FEA8;
    background-color: #f9f9f9;
}

#qr_options select#wifi_security:focus {
    background-color: #A9FEA8;
    border-color: #41c129;
    transition: all 0.3s;
}

/* Don't apply focus background to WiFi checkbox */
#qr_options input#wifi_hidden:focus {
    background-color: transparent !important;
}

#qr_options input:focus {
    background-color: #A9FEA8;
    transition: all 0.3s;
}

#qr_design_options {
    margin-top: 0px;
    float: right;
    background-color: #2afff5;
}

#qr_design_options #photo_upload_input {
    display: none;
}

#qr_design_options input,
#qr_design_options select {
    background-color: white;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 400px;
    border: none;
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

#qr_design_options #image_select_button,
#qr_design_options #qr_label {
    display: none;
}

/* Show image button when image design types are selected */
#qr_design_options.show-image #image_select_button {
    display: block;
}

/* Show label input when label design types are selected */
#qr_design_options.show-label #qr_label {
    display: block;
}

#qr_content_error {
    margin-top: 30px;
    font-size: 14px;
    display: none;
    line-height: 24px;
}

#qr_content_error img {
    vertical-align: middle;
}

#qr_design_options button {
    font-size: 16px !important;
    line-height: 24px;
    font-family: 'Oswald', sans-serif;
    background-color: white;
    outline: none;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    max-width: 400px;
    border: none;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s;
    margin-top: 10px;
}

#qr_design_options button img {
    vertical-align: text-bottom;
}

#qr_design_options input:hover,
#qr_design_options select:hover,
#qr_design_options button:hover {
    background-color: #A9FEA8;
    transition: all 0.2s;
}

#qr_design_options #qr_color_description {
    float: left;
    width: 65%;
    margin-right: 5%;
}

#qr_design_options canvas {
    display: none;
}

#qr_design_options #qr_color {
    height: 36px;
    padding: 3px;
    background-color: white !important;
    width: 30%;
    float: left;
}

.btn {
    font-size: 13px;
    background-color: white;
    font-family: 'Oswald', sans-serif;
    border: none;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 35px;
    padding-left: 35px;
    cursor: pointer;
    outline: none;
    margin-top: 30px;
    transition: all 0.2s;
    border-radius: 6px;
}

.btn:hover {
    background-color: #FAFAD2;
    transition: all 0.2s;
}

#sign_up {
    display: block;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    padding: 20px;
    margin-bottom: 50px;
}

#sign_up_form {
    display: none;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    padding: 20px;
    margin-bottom: 50px;
}

#sign_up_form input {
    outline: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 400px;
    border: none;
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
    transition: all 0.3s;
    margin-top: 20px;
}

#sign_up_form #your_plan {
    font-size: 14px;
    margin-bottom: 20px;
}

#sign_up_form #selected_plan {
    font-weight: bold;
}

#sign_up_form #change_plan {
    font-family: sans-serif;
    cursor: pointer;
    background-color: white;
    margin-left: 20px;
    display: inline;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 400px;
    border: none;
    font-size: 13px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-right: 16px;
    padding-left: 16px;
    transition: all 0.3s;
    border-radius: 6px;
}

#sign_up_form #change_plan:hover {
    background-color: #A9FEA8;
    transition: all 0.3s;
}

#sign_up_form input:focus {
    background-color: #A9FEA8;
    transition: all 0.3s;
}

#plans div {
    margin-top: 10px;
    display: block;
    width: 30%;
    margin-left: 10%;
    margin-right: 10%;
    box-sizing: border-box;
    float: left;
    transition: all 0.5s;
    border: solid 3px white;
    border-radius: 8px;
    cursor: pointer;
}

@media only screen and (max-width: 800px) {
    #plans div {
        margin-top: 10px;
        display: block;
        width: 80%;
        float: none;
    }
}


#plans div:hover {
    filter: brightness(105%);
    transition: all 0.5s;
}

#plans h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 25px;
    font-weight: 400;
    text-align: center;
}

#plans ul {
    padding-top: 20px;
    padding-bottom: 20px;
    height: 240px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

#plans li {
    list-style-type: none;
    margin-bottom: 3px;
    text-align: center;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 6px;
    background-color: rgba(255, 255, 255, 0.5);
}

#plans .price {
    font-family: 'Oswald', sans-serif;
    display: block;
    line-height: 40px;
    padding-bottom: 15px;
    text-align: center;
}

#plan_free {
    background-color: antiquewhite;
}

#plan_plus {
    background-color: palegoldenrod;
}

#copyrights {
    margin-top: 20px;
    color: gray;
    line-height: 20px;
    font-size: 12px;
}

#password {
    margin-bottom: 30px;
}

#forgot {
    margin: auto;
    width: 150px;
    cursor: pointer;
    text-align: center;
}

#app {
    display: none !important;
}

#scan_qr_code,
#mobile_nav_scan_qr {
    display: inline-block !important;
}

.mcheck {
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 10px;
    padding-left: 36px;
    font-size: 14px;
    height: 36px;
    line-height: 36px;
    background-image: url(../img/icons/checkbox-blank-circle.svg);
    background-position: left center;
    background-repeat: no-repeat;
    transition: all 0.2s;
}

.mcheck_active {
    background-image: url(../img/icons/checkbox-marked-circle.svg);
}

.tlink {
    text-decoration: underline;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-content div {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content div:hover {
    background-color: #f1f1f1;
}

.dropdown-content div:last-child {
    border-bottom: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.dropdown-content div:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

/* Homepage Tools Section */
#homepage_tools {
    margin: 20px 0;
    padding: 30px 20px;
    clear: both;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #4CAF50 0%, #e0f2fe 100%);
}

/* Business Card Designer */
.business-card-tool {
    background: linear-gradient(135deg, #ffffff 0%, #f9fdf7 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(109, 195, 38, 0.15);
    border: 2px solid #aaffaa;
}

.business-card-tool .tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #aaffaa;
}

.business-card-tool .tool-header h2 {
    color: #6dc326;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.business-card-tool .tool-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    margin-top: 16px;
}

.designer-form input {
    background-color: white;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    border: 1px solid #ddd;
    font-size: 16px;
    padding: 10px;
    transition: all 0.3s;
    margin-top: 10px;
    border-radius: 6px;
}

.designer-form input:hover {
    border-color: #A9FEA8;
}

.designer-form input:focus {
    background-color: #A9FEA8;
    border-color: #41c129;
}

.designer-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.designer-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-preview {
    width: 380px;
    height: 240px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.bc-left { flex: 1; margin-right: 16px; }
.bc-name { font-size: 18px; font-weight: 600; color: #111; }
.bc-title-company { font-size: 13px; color: #555; margin-top: 4px; }
.bc-contact { font-size: 12px; color: #333; margin-top: 8px; }
.bc-website { font-size: 12px; color: #2b6cb0; margin-top: 6px; word-break: break-word; }
.bc-address { font-size: 12px; color: #555; margin-top: 6px; }

.bc-right { width: 120px; display: flex; align-items: center; justify-content: center; }
.bc-right #bc_qr { width: 120px; height: 120px; }

@media (max-width: 768px) {
    .business-card-tool .tool-body { grid-template-columns: 1fr; }
    .designer-preview { margin-top: 10px; }
    .card-preview { width: 100%; max-width: 420px; }
}

#homepage_tools .tools-dashboard {
    padding: 0;
}

#homepage_tools .tools-header {
    text-align: center;
    margin-bottom: 30px;
    display: block;
}

#homepage_tools .tools-header h2 {
    color: #6dc326;
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    text-transform: none;
}

#homepage_tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
    max-width: none;
}

#homepage_tools .tool-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fdf7 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(109, 195, 38, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #aaffaa;
    position: relative;
    overflow: hidden;
}

#homepage_tools .tool-card:hover {
    box-shadow: 0 12px 30px rgba(109, 195, 38, 0.2);
    border-color: #6dc326;
}

.tools-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    position: relative;
}

.tools-header {
    display: none;
}

.close-btn {
    background: linear-gradient(135deg, #6dc326 0%, #5ba021 100%);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(109, 195, 38, 0.2);
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.close-btn:hover {
    background: linear-gradient(135deg, #5ba021 0%, #4a8c1c 100%);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(109, 195, 38, 0.3);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
    margin-top: 20px;
}

.tool-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fdf7 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(109, 195, 38, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #aaffaa;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(170, 255, 170, 0.3), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover {
    box-shadow: 0 12px 30px rgba(109, 195, 38, 0.2);
    border-color: #6dc326;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6dc326 0%, #aaffaa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(109, 195, 38, 0.3);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(109, 195, 38, 0.4);
}

.tool-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.tool-card h3 {
    color: #6dc326;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(109, 195, 38, 0.1);
}

.tool-card p {
    color: #5a7c5a;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.tool-btn {
    background: linear-gradient(135deg, #6dc326 0%, #5ba021 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(109, 195, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.tool-btn:hover {
    box-shadow: 0 6px 20px rgba(109, 195, 38, 0.4);
    background: linear-gradient(135deg, #5ba021 0%, #4a8c1c 100%);
}

.tool-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tool-btn:active {
    transform: translateY(0);
}

/* Text Tools Specific Styling */
.text-tools-container {
    background: linear-gradient(135deg, #ffffff 0%, #f9fdf7 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(109, 195, 38, 0.15);
    border: 2px solid #aaffaa;
}

.text-tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #aaffaa;
}

.text-tools-header h2 {
    color: #6dc326;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
    text-transform: lowercase;
}

.text-tools-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.text-tool h3 {
    color: #6dc326;
    margin-bottom: 15px;
    font-weight: 600;
}

.text-tool textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #aaffaa;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.text-tool textarea:focus {
    outline: none;
    border-color: #6dc326;
    box-shadow: 0 0 10px rgba(109, 195, 38, 0.2);
}

.text-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

#qrCodesContainer button {
    background: linear-gradient(135deg, #6dc326 0%, #5ba021 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(109, 195, 38, 0.3);
    margin-bottom: 6px;
}

.text-buttons button {
    background: linear-gradient(135deg, #6dc326 0%, #5ba021 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(109, 195, 38, 0.3);
}

.text-buttons button:hover {
    box-shadow: 0 4px 12px rgba(109, 195, 38, 0.4);
    background: linear-gradient(135deg, #5ba021 0%, #4a8c1c 100%);
}

#text_stats {
    background: linear-gradient(135deg, #f9fdf7 0%, #f1f8e9 100%);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #aaffaa;
}

#text_stats p {
    color: #6dc326;
    font-weight: 500;
    margin: 10px 0;
}

#text_stats span {
    color: #5ba021;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-dashboard {
        padding-top: 10px;
    }

    .close-btn {
        top: 15px;
        right: 15px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 15px;
    }

    .tools-header h2,
    .text-tools-header h2 {
        font-size: 1.3rem;
    }

    .close-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .tool-card {
        padding: 20px;
    }

    .text-tools-grid {
        grid-template-columns: 1fr;
    }

    #homepage_tools {
        margin: 20px auto;
        padding: 0 15px;
    }

    #homepage_tools .tools-header h2 {
        font-size: 1.5rem;
    }

    #homepage_tools .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.app-dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    width: min(92vw, 520px);
    color: #444;
}

.app-dialog::backdrop {
    background-color: rgba(40, 235, 225, 0.8);
}

.app-dialog .dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
}

.app-dialog .dialog-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
}

.app-dialog .dialog-close {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 16px;
    cursor: pointer;
}

.app-dialog .dialog-body {
    padding: 16px;
    background: #fff;
}

.app-dialog .dialog-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #eee;
}

.dialog-icon { display: none; }

.dialog-loading {
    width: 24px;
    height: 24px;
    border: 3px solid #9de0f6;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dialog-rotate-loading 1s linear infinite;
}

@keyframes dialog-rotate-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
