/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6f3fc;
    padding: 14px 18px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-title {
    font-size: 1.8rem;
    color: #006666;
}

.navbar-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.navbar-links a {
    text-decoration: none;
    color: #006666;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #ffcc00;
}

.toggle-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        width: 100%;
        background-color: #f4f4f4;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .navbar-links ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 15px 0;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links a {
        padding: 10px;
        width: 100%;
        text-align: center;
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    color: #006666;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;
}







/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height to center content */
}

/* Centering the Container */
.container {
    width: 100%;
    max-width: 350px;
    padding: 2rem .7rem .7rem .7rem;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative; /* Required for positioning */
}

/* Input field styling */
input[type="file"] {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 100%;
}

/* Progress Bar Styling */
progress {
    width: 100%;
    margin-top: 20px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: #f4f4f4;
}

progress::-webkit-progress-value {
    background-color: #28a745;
}

progress::-moz-progress-bar {
    background-color: #28a745;
}


/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Success Modal */
#success-modal .modal-content {
    border: 1px solid #28a745;
}

#modal-message-success {
    color: #28a745;
}

/* Error Modal */
#error-modal .modal-content {
    border: 1px solid #dc3545;
}

#modal-message-error {
    color: #dc3545;
}

/* Uploaded File Display */
#uploaded-file-link {
    margin-top: 20px;
}




.copy-url-button {
    display: none;            /* Hide by default */
    align-items: center;
    justify-content: space-between;
    background-color: #f0f9ff; /* Light grey background */
    border: 1px solid #ccc;    /* Light grey border */
    border-radius: 8px;        /* Rounded corners */
    padding: 9px 12px;        /* Some padding */
    width: 100%;               /* Full width */
    box-sizing: border-box;    /* Include padding in width */
}

.download-url {
    flex-grow: 1;
    color: #333;               /* Dark grey text */
    font-size: 14px;           /* Adjust font size */
    overflow: hidden;          /* Hide overflow if too long */
    text-overflow: ellipsis;   /* Add ellipsis for long URLs */
    white-space: nowrap;       /* Prevent text from wrapping */
    margin-right: 10px;        /* Space between URL and button */
}

.copy-url-button button {
    background-color: #ff5eac; /* Green background */
    border: none;              /* Remove borders */
    color: white;              /* White text */
    padding: 8px 16px;         /* Some padding */
    text-align: center;        /* Center the text */
    font-size: 14px;           /* Set a default font size */
    font-weight: semi-bold;         /* Make the text bold */
    border-radius: 8px;        /* Rounded corners */
    cursor: pointer;           /* Pointer/hand icon on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
}

.copy-url-button button:hover {
    background-color: red; /* Darker green on hover */
    transform: scale(1.05);    /* Slightly enlarge on hover */
}

.copy-url-button button:active {
    background-color: #397d3b; /* Even darker green when clicked */
    transform: scale(1);       /* Reset the scale */
}





/* From Uiverse.io by Yaya12085 */ 
.form {
  background-color: #fff;
  box-shadow: 0 10px 60px rgb(218, 229, 255);
  border: 1px solid rgb(159, 159, 160);
  border-radius: 20px;
  padding: 2rem .7rem .7rem .7rem;
  text-align: center;
  font-size: 1.125rem;
  max-width: 320px;
}

.form-title {
  color: #000000;
  font-size: 1.8rem;
  font-weight: 500;
}

.form-paragraph {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: rgb(105, 105, 105);
}

.drop-container {
  background-color: #fff;
  position: relative;
  display: flex;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin-top: 2.1875rem;
  border-radius: 10px;
  border: 2px dashed rgb(171, 202, 255);
  color: #444;
  cursor: pointer;
  transition: background .2s ease-in-out, border .2s ease-in-out;
}

.drop-container:hover {
  background: rgba(0, 140, 255, 0.104);
  border-color: rgba(17, 17, 17, 0.616);
}

.drop-container:hover .drop-title {
  color: #222;
}

.drop-title {
  color: #444;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: color .2s ease-in-out;
}

#file {
  width: 350px;
  max-width: 100%;
  color: #444;
  padding: 2px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(8, 8, 8, 0.288);
}

#file::file-selector-button {
  margin-right: 20px;
  border: none;
  background: #0077ff;
  padding: 10px 20px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease-in-out;
}

#file::file-selector-button:hover {
  background: #0011ff;
}
