/* ===================================== LOADING OVERLAY ===================================== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures it's above all elements */
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    min-height: 40px;
}
.tag {
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}
.tag button {
    background: transparent;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
}
.tag button:hover {
    color: #ffdddd;
}





/* ===================================== TAGS ===================================== */
/* Style for the input field */
#tagInput {
    width: 200px;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Style for the add button */
#addTagBtn {
    padding: 8px 12px;
    margin-left: 5px;
    border: none;
    background-color: #375695;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

/* Tag container */
#tagContainer {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Individual tag style */
#tagContainer span {
    background-color: #f1f1f1;
    padding: 6px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    border: 1px solid #ccc;
}

/* Remove button inside the tag */
#tagContainer span button {
    background-color: red!important;
    color: white;
    border: none;
    margin-left: 8px;
    padding: 4px 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

#tagContainer span button:hover {
    background-color: darkred;
}
