/* Define root variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --background-color: #f4f4f4;
    --border-color: #ddd;
    --white-color: #fff;
    --error-color: #fd0000;
    --success-color: #049741;
}
*{
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.1;
}
html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}
input:focus, input:active, input:valid{
    outline: 0;
}
a, button {
    transition: all 0.5s ease-in-out;
}
button:hover {
    background-color: var(--white-color);
    color: var(--text-color);
}
.wrapper {
    width: 100%;
    height: 100%;
}
.bg {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
header {
    width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
}
.logo h1{
    font-size: 20px;
    color: var(--white-color);
}
.logo img{
    width: 40px;
    height: 30px;
}

/* APP Design */
.app {
    display: flex;
    align-items: center;
    width: 95%;
    justify-content: space-between;
    margin: 0 auto;
    height: calc(100vh - 180px);
    gap: 20px;
}

.inputBox {
    padding: 20px;
    border-radius: 6px;
    height: auto;
    width: 30%;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
}

.messagesBox {
    padding: 20px;
    border-radius: 6px;
    height: 100%;
    width: 70%;
    backdrop-filter: blur(5px);
    background-color: rgba(255,255,255,0.5);
}
.messages {
    overflow-y: auto;
    position: relative;
    height: inherit;
}
.messages .tempText{
    content: "Sync Files!";
    text-transform: uppercase;
    font-size: 8vw;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: inherit;
    color: rgba(255, 255, 255, 0.4);
}
.label form {
    display: flex;
}
.btn{
    background-color: var(--primary-color);
    align-items: center;
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    font-size: inherit;
    font-size: 16px;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    outline-width: 0;
    padding: 1rem;
    text-decoration-line: none;
    transition: all .15s cubic-bezier(.4,0,.2,1);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: -moz-fit-content;
    width: fit-content;
    color: var(--white-color);
}

.pinWrap {border-bottom: 1px solid rgba(255,255,255,0.3);padding-bottom: 10px;margin-bottom: 10px;}

.label label {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    outline: 0;
    font-family: "Playfair", serif;
}

.pinWrap input {
    border-top-right-radius: 0px;
    background-color: #fff;
    border: 0;
    padding: 15px;
    border-radius: 3px;
    width: 70%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pinWrap button {
    width: 30%;
    border: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
.shareable-buttons button {
    width: 100%;
    background-color: var(--text-color);
    padding: 10px;
    margin-top: 10px;
    border-radius: 3px;
    transition: all 0.5s ease-in-out;
}
.shareable-buttons button:hover {
    background-color: var(--white-color);
    color: var(--text-color);
}
.textWrap{
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.3);padding-bottom: 10px;margin-bottom: 10px;
}
.textWrap input {
    border-top-right-radius: 0px;
    background-color: #fff;
    border: 0;
    padding: 15px;
    border-radius: 3px;
    width: 100%;
    min-height: 120px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.textWrap button{
    background-color: #fff;
    border: 0;
    position: absolute;
    bottom: 8px;
    right: 0;
    font-size: 10px;
    width: 100%;
    cursor: pointer;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

input.error {
    border: 1px solid #fd0000;
}

div#userConnected span{
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 10px;
    text-align: center;
    margin-bottom: 5px;
    display: block;
}

/* IMAGE UPLOAD */
/* Custom upload container styles */
.custom-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0 15px;
}

/* Add files button styles */
.upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color); /* Blue background */
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-label:hover {
    background-color: var(--primary-color); /* Darker blue on hover */
}

/* Plus icon styles */
.upload-icon {
    display: inline-block;
    background-color: var(--white-color);
    color: var(--primary-color); /* Blue color for icon */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 20px;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

/* Add files text styles */
.upload-text {
    color: var(--white-color); /* White text for label */
    font-weight: bold;
}

/* Upload button styles */
.upload-button {
    background-color: #f3f4f6; /* Light gray background */
    color: #333; /* Dark text */
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.upload-button:hover {
    background-color: var(--primary-color); /* Blue background */
    color: white;
    border-color: var(--primary-color);
}
.fileName {
    padding: 4px;
    font-size: 12px;
    line-height: 12px;
    text-align: center;
    border-radius: 3px;
    margin-bottom: 10px;
    color: var(--text-color);
}

span.imgError {
    width: 100%;
    text-align: center;
}

input[type="file"] {
    display: none;
}
span i {
    display: block;
    font-style: normal;
    font-size: 12px;
    padding: 5px;
    margin-top: 5px;
}
.label span i{
    color: var(--white-color);
}
.label span i.error{
    background-color: var(--error-color);
}
.label span i.success{
    background-color: var(--success-color);
}
.messages .message-container{
    background-color: var(--border-color);
    display: flex;
    width: 90%;
    padding: 10px;
    margin: 0 auto;
    margin-bottom: 10px;
    border-radius: 5px;
    align-items: center;
    justify-content: space-between;
}
.messages .message-container:nth-child(even) {
    background-color: #e8e7e7;
    margin-left: 0;
}
.messages .message-container:nth-child(odd) {
    background-color: var(--white-color);
    margin-right: 0;
}
.message-text {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    height: inherit;
}
.message-text p {
    margin: 0;
}
.mobileDivUserConnect, .mobMenu{display: none;}
@media (max-width: 1024px) {
    .app{width: 100%;}
    header {
        justify-content: space-between;
        width: 90%;
    }
    .mobMenu{
        display: flex;
        width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        border: 1px solid #fff;
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.5s ease-in-out;
    }
    .mobMenu .bars{display: block;}
    .mobMenu .close{display: none;}
    .mobMenu.active .bars{display: none;}
    .mobMenu.active .close{display: block;}
    .app{
        flex-direction: column;
    }
    .messagesBox {
        width: 90%;
    }
    .inputBox {
        position: absolute;
        left: -150px;
        width: 300px !important;
        transform: translate(-50%, -50%);
        top: 50%;
        z-index: 1;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        transition: all 0.5s ease-in-out;
        box-shadow: 2px 5px 12px 1px rgba(0, 0, 0, 0.3);
    }
    .inputBox.active {
        left: 150px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .mobileDivUserConnect {
        display: block;
        position: fixed;
        bottom: -6px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 8px 0;
    }
}
/* @media (max-width: 510px) {
    .inputBox, .messagesBox {
        width: 95%;
    }
} */

/* Syncify Previous Used PINs */
.previousConnections{
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    margin-bottom: 10px;
}
.previousConnections label{
    padding-top: 10px;
    display: block;
    padding-bottom: 2px;
}
#pinsDisplay{
    background-color: var(--primary-color);
    padding: 15px;
    height: 130px;
    overflow-y: auto;
}
.pin-item-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.pin-item{
    cursor: pointer;
    color: var(--white-color);
    background-color: var(--primary-color);
    border:1px solid var(--white-color);
    border-right: 1px solid transparent;
    padding: 5px;
    border-radius: 3px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transition: all 0.5s ease-in-out;
    text-transform: lowercase;
    text-align: center;
    width: 100%;
}
.pin-item:hover{
    background-color: var(--white-color);
    color: var(--primary-color);
    border:1px solid transparent
}
.pin-item:last-child {
    margin-bottom: 0;
}
.pin-item-wrap button.delete-pin {
    background-color: var(--text-color);
    color: var(--white-color);
    border: 0;
    width: 30px;
    height: 30px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
.pin-item-wrap button.delete-pin:hover{
    color: var(--text-color);
    background-color: var(--white-color);
}
/* DYNAMIC POP UP - Popup styles */
/* Initially hide the popup */
#popupContainer.hidden {
    display: none;
    transition: transform 0.5s ease-out; /* Smooth transition */
}
#popupContainer.hidden .popupInner{
    transform: translateY(-100%); /* Start from above the screen */
    transition: transform 0.5s ease-out; /* Smooth transition */
}
/* Popup container with visible class */
#popupContainer.visible {
    display: flex;
}
#popupContainer.visible .popupInner{
    transform: translateY(0);
}
/* Optional: Styling for the popup */
#popupContainer {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
    width: 100%;
    height: calc(100% - 88px);
    z-index: 9;
}

#popupContainer p {
    font-size: 16px;
}

.popupInner {
    width: 80%;
    background-color: #fff;
    border-radius: 5px;
    padding: 50px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
}
.popupInner button, .popupInner a{
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
    margin: 0;
}
.popupCopy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}
.popupCopy p {
    background-color: #f1f1f1;
    padding: 10px 30px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    margin-left: 10px;
}
.popupInner svg {
    width: 20px;
}

.popupCopy button {
    border: 0;
    background-color: var(--primary-color);
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    color: var(--white-color);
}
.popupShareButtons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.popupShareButtons a{
    display: flex;
    text-decoration: none;
}
.popupShareButtons button, .popupShareButtons a{
    border: 1px solid var(--primary-color);
    padding: 15px 50px;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 20px;
}
.popupShareButtons button:hover, .popupShareButtons a:hover {
    border: 1px solid var(--primary-color);
    background-color: var(--white-color);
    color: var(--primary-color);
}

.popupCloseButton button {
    background-color: var(--error-color);
    border: 0;
    margin: 0 !important;
    border-radius: 40px;
    color: #fff;
    font-size: 20px;
    position: absolute;
    top: -26px;
    right: -23px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hidden {
    display: none;
}
button#emailShareButton.active {
    border: 1px solid var(--primary-color);
    background-color: var(--white-color);
    color: var(--primary-color);
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    scale: 1.3;
    position: relative;
    z-index: 1;
}
.emailFormContainer {
    border: 1px solid var(--primary-color);
    margin-top: 8px;
    padding: 0;
    border-radius: 3px;
    position: relative;
    z-index: 0;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s ease-in-out;
}
.emailFormContainer form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}
.emailFormContainer input {
    margin-right: 0;
    border: 0;
    border-radius: 4px;
    width: 100%;
    padding: 13px;
}

.emailFormContainer button {
    padding: 14px 22px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.emailFormContainer button:hover {
    background-color: #0056b3;
}
.hidden {
    display: none;
    transition: all 0.5s ease-in-out;
}
.emailFormContainer #result_msg {
    position: absolute;
    bottom: -30px;
    width: 100%;
}
.emailFormContainer #result_msg i{
    font-style: normal;
    display: block;
    padding: 3px;
    text-align: center;
    border-radius: 3px;
}
i.bg-error {
    background: var(--error-color);
    color: var(--white-color);
}
i.bg-success {
    background: var(--success-color);
    color: var(--white-color);
}
.messagesBox .spinnerWrapper {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    filter: invert(1);
}

.message-container.deleting {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}
.message-container.deleting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid transparent;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.downloading {
    opacity: 0.5; /* Make it slightly transparent */
    pointer-events: none; /* Prevent interaction during download */
}

.downloading::after {
    content: 'Downloading...';
    font-size: 14px;
    color: #888;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    color: white;
}

.cP{
cursor: pointer;
}

.btnWrap button {
    border: 0;
    background-color: var(--text-color);
    color: var(--white-color)!important;
    width: 30px;
    border-radius: 3px;
    height: 30px;
    font-size: 10px;
}

.btnWrap button i {
    font-size: 10px;
    color: var(--white-color)!important;
}

.btnWrap button:hover {
    background-color: var(--primary-color);
}