.upload {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999999999;
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.file-label {
    display: inline-block;
    background-color: #35495e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.file-icon {
    margin-right: 8px;
}

.file-input {
    display: none;
}

.file-label:hover {
    background-color: #3a5068;
}

.file-input::file-selector-button {
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #35495e;
    border-radius: 4px;
}

.file-input::file-selector-button:hover {
    background-color: #e0e0e0;
}

#files-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* File donwload button */

.file-download a {
    padding: 5px 10px;
    background-color: var(--button);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.file-download a:hover {
    background-color: var(--button-hover);
}

.file-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 10px;
    width: 100%;
    font-size: 12px;
}

.file-type img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    border-radius: 5px;
    object-fit: cover;
}

.file {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    background-color: var(--sidebar);
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 10px;
    color: var(--text-color);

    min-width: 280px;
    min-height: 220px;
    max-width: 280px;
    max-height: 270px;

    width: fit-content;
    height: fit-content;


    outline: 1px solid var(--border);
    padding: 20px 20px;
    border: 5px solid transparent;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.file-name {
    flex-grow: 1;
    font-weight: bold;
    margin-right: 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;

}

.file:hover {
    outline: 0px solid transparent;
    padding: 20px 20px;
    border: 5px solid var(--border);
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.download-link {
    color: #333;
    text-decoration: none;
    background-color: var(--border);
    padding: 6px 12px;
    border-radius: 4px;
}

.download-link:hover {
    background-color: #aaa;
    color: #fff;
}

/* Modal container styles */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close button styles */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Info button styles */
.info-button {
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Content container styles */
.content-container {
    max-width: 95vw;
    max-height: 95vh;
    background-color: #fff;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container video,
.content-container img,
.content-container audio {
    max-width: 95vw;
    max-height: 95vh;
}


#canvas_container {
    width: 70vw;
    height: 75vh;
    overflow: auto;
}

#canvas_container {
    background: #333;
    text-align: center;
    border: solid 3px;
}

#my_pdf_viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #35495e;

}

#controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 10px 0;
}

#navigation_controls,
#zoom_controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 10px 0;
}

#controls button {
    margin: 5px;
    padding: 5px 10px;
    background-color: var(--sidebar);
    color: #333;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    width: 75px;
}

#controls button:hover {
    background-color: #eee;
}

#controls input {
    margin: 5px;
    padding: 5px 10px;
    background-color: var(--sidebar);
    color: #333;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    width: 75px;
}

#controls input:hover {
    background-color: #eee;
}

.active {
    color: var(--link-hover);
    background: var(--blue-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    color: var(--text-color);
}

/* Download link */

a {
    color: var(--link-color);
    text-decoration: none;
}

.text-content {
    padding: 20px;
    background-color: var(--sidebar);
    border-radius: 5px;
    margin-bottom: 10px;
    color: var(--text-color);
    word-wrap: break-word;
    width: 70vw;
    max-height: 550px;
    overflow: auto;
}


/* CSS for the toast container */
.upload-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* CSS for the toast message */
.upload-toast {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #1e3b5a;
    color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* CSS for the progress bar */
.upload-toast progress {
    width: 200px;
    height: 10px;
}

/* CSS for the complete status */
.upload-toast.complete {
    background-color: #008000;
}

/* CSS for the error status */
.upload-toast.error {
    background-color: #ff0000;
}

#filesPaths {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

#filesPaths a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

#filesPaths a:not(:last-child)::after {
    content: '/';
    margin: 0 5px;
}

#filesPaths a:hover {
    color: #0056b3;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

}

/* Modal container */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* Modal content */
.modal-content {
    background-color: var(--sidebar);
    padding: 20px;
    border-radius: 4px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

/* Label styles */
.modal-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Input styles */
.modal-container input[type="text"],
.modal-container select,
.modal-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    background-color: var(--blue-color);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-color);
    outline: none;
    resize: vertical;
}

/* Button styles */
.modal-container button {
    background-color: var(--button);
    color: var(--text-color);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.2s ease;
    margin: 10px;
}

.modal-container button:hover {
    background-color: var(--button-hover);
}

/* Cancel button styles */
.modal-container button.cancel-button {
    background-color: #ccc;
    color: #000;
    margin-right: 10px;
}

.modal-container button.cancel-button:hover {
    background-color: #999;
}


#search-results {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.search-result {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 4px 6px;
    background-color: var(--sidebar);
    border-radius: 4px;
    color: var(--text-color);
    word-wrap: break-word;
    width: 70vw;

    margin: auto;
    border: 1px solid var(--border);
}

.search-result:hover {
    background-color: var(--blue-color);
    cursor: pointer;
}

.search-result a {
    color: var(--link-color);
    text-decoration: none;
}

.search-result a:hover {
    color: var(--link-hover);
}

.search-result img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    object-fit: cover;
}

.search-data {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.search-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


#storageChart {
    display: inline-block;
    width: 300px;
    margin-right: 20px;
}

#progressBar {
    width: 300px;
    height: 20px;
    background-color: lightgray;
    margin-top: 10px;
}

#progress {
    height: 100%;
    background-color: dodgerblue;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--sidebar);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    color: var(--text-color);
}

h1 {
    margin-bottom: 20px;
    text-align: center;
}

canvas {
    max-width: 400px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--blue-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: dodgerblue;
    border-radius: 10px;
}

.legend {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.legend-item span {
    margin-left: 10px;
}

.tiles {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-color);
    border-radius: 4px;
    padding: 4px 6px;
}

.tiles .container {
    height: 480px;
}


@media screen and (max-width: 768px) {
    .tiles {
        margin-left: -30px;
    }

}