/* CSS for the temporary message box */
#temporary-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Ensure it's on top of other content */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth fade in/out */
    min-width: 300px;
}

/* Class to make the message visible */
#temporary-message.show {
    opacity: 1;
}

/* Hide the message completely after fade out */
#temporary-message.hide {
    display: none;
}

.content-section {
    width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
}

.content-section h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--primary, #C52B27);
    margin: 35px 0 35px 0;
    text-align: left;
    width: 100%;
}

.project-container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    min-height: 689px;
    background: var(--Color50, #DEDEDE80);
    border-radius: 8px;
    padding: 24px;
    gap: 16px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 529px;
    padding: 16px;
    gap: 16px;
}

.project-content .fa-folder {
    font-size: 40px;
    color: var(--primary, #C52B27);
}

.project-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #4F4F4F;
}

.add-button,
.add-button-active {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #C52B27);
    box-shadow: 0px 0px 6px 0px #00000040;
    width: 156px;
    height: 52px;
    border-radius: 8px;
    color: var(--white, #FFFFFF);
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    text-decoration: none;
    gap: 6px;
    border-width: 0px;
}

.add-button:hover,
.add-button-active:hover {
    color: #FFFFFF;
    background-color: #b30000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

 /* ปุ่ม Scan ที่ disabled */
.scan-button-disabled {
    background-color: #CACACA !important;
    color: #0C0C0C !important;
    border: 1px solid var(--Color-input-default, #CACACA);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed !important;
}

.scan-button-disabled:hover {
    background-color: #CACACA !important;
    transform: none;
    box-shadow: none;
}

/* Generic */
.exists {
    border-right: 1px solid #00000040;
}

.exists .box{
    padding: 20px;
    border: 1px solid #00000040;
    margin: 5px;
}

a:hover {
	text-decoration: none;
}