/*============================================================+
// Started        : 2025-02-02
// Author         : Domenico Papa
// Integration    : Domenico Papa
// (c) Copyright  : ae Aeonian Engineering Limited - Hong Kong
//===========================================================*/
/* ---------------- BODY */

html,
body {
    height: 100%;
    /* Ensure the page takes up the full viewport height */
    margin: 0;
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    /* Make the body a flex container */
}

main {
    margin-top: 50px;
}
/* ---------------- DARK LIGHT MODES*/

body.dark-mode {
    background-color: #121212;
    color: #f8f9fa;
}

body.dark-mode .navbar,
body.dark-mode .sidebar,
body.dark-mode footer {
    background-color: #8d1d1d;
    color: #f8f9fa;
}

body.dark-mode .nav-link {
    color: #f8f9fa;
}

body.dark-mode .nav-link:hover {
    color: #007bff;
}


/* ---------------- MAIN */

.logo { 
    width:49px;
    margin-right: 30px;
    margin-left: 30px;
}

main {
    flex: 1;
    padding-left: 200px;
    width: 100%;
    margin-bottom: 250px;

}


/* ---------------- HEADER*/
header {
    position: absolute;
    top: 0;
    z-index: 1000;
}

/* ---------------- SIDEBAR*/
aside {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;

}

/* ---------------- FOOTER */

footer {
    background-color: #10253a;
    /* Dark background to match your theme */
    color: #fff;
    /* Light text for contrast */
    text-align: center;
    padding: 1rem 0;
    width: 100% !important;
    position: absolute;
    bottom: 0;
    /* Ensure the footer spans the full width */
}

/* ---------------- BLOCKS*/

#content-blocks {
    margin-bottom: 2rem;
    /* Add space to prevent overlapping with the footer */
}

.content-block {
    margin-bottom: 1rem;
}

#content-blocks {
 
    padding-top: 1rem;
}
.d-flex.mt-4 {
    gap: 1rem;
}


/*---------------------BUTTONS */
.btn {
    transition: background-color 0.3s ease;
}

/*---------------------LABELS*/


label {
    font-size: small;
    
    margin-left: 15px;
    margin-bottom: 5px;
}

a {
    text-decoration: none;
}

/*---------------------- IMAGES MANAGER */

.remove-gallery-item{
    width:30px !important;
    height:30px !important;
}
 
.image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px; /* Match your image size */
    height: 200px;
    background-color: #f8d7da2c; /* Light red background */
    border: 12px solid #dc3545; /* Red border */
    border-radius: 50%; /* Circle */
    position: relative;
}

.placeholder-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    color: #691f1f; /* Text color to match */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.placeholder-text {
    z-index: 2;
    text-transform: uppercase;
}

.placeholder-circle::before {
    content: "";
    position: absolute;
    width: 105%;
    height: 15px;
    background-color: #dc3545;
    transform: rotate(-45deg);
    z-index: 1;
}

.img-thumbnail {
    width: 200px;
    height: 200px;
}

#gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    max-width: 512px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.gallery-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.image-item {
    width: 100%;
    height: 100%;
    max-width: 256px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
}