/* Styling for the form */
.search-form {
    background-color: #101010;
    color: #fff;
    padding: 30px;
    
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qodef-icon-widget-holder:hover {
    background: none !important;  /* Elimină orice schimbare de background la hover */
    transform: none !important;   /* Elimină orice efect de transformare */
    color: inherit !important;    /* Restabilește culoarea originală */
}

.search-form .form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-row.top-row {
/*     justify-content: space-between; */
}

.form-row.bottom-row {
    display: flex;               
    justify-content: space-between; 
    align-items: stretch; 
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.half-width {
    flex: 0 0 calc(25% - 10px); /* Setează lățimea la 25% */
}

.form-group.full-width {
    flex: 1; /* Ocupă lățimea completă */
}

label {
    font-size: 0.9em;
/*     color: #152136; */
    margin-bottom: 5px;
}

input,
select {
    width: 97%;
	height: 100%;
    padding: 10px;
    
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
}

.search-button {
    background-color: #23A9AF;
    color: white;
    border: none;
    padding: 11px 15px;
    font-size: 1em;
    
    cursor: pointer;
    width: 24.5%;
    height: 50%;
    margin-top: 28px;
    flex: 0 0 calc(25% - 19px); /* Setează lățimea la 25% */
	padding: 10px;
}


.search-button:hover {
    background-color: #152136;
}

.delete-room-btn {
    background-color: #152136;
    color: white;
    border: none;
    padding: 11px 15px;
    font-size: 1em;
    
    cursor: pointer;
    width: 24.5%;
    height: 50%;
    margin-top: 28px;
    flex: 0 0 calc(25% - 19px); /* Setează lățimea la 25% */
	padding: 10px;
}

.delete-room-btn:hover {
    background-color: #23A9AF;
}


.search-icon {
    position: absolute;
    right: 15px;
    top: 35%;
    color: #888;
    font-size: 1.2em;
}

.search-form input[type="text"] {
    width: 98%;
	height: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
	margin: 0;
}

.search-form .form-group.position-relative {
    position: relative;
}

/* Modal styles */

/* .no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
} */


.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    overflow: auto;
	z-index: 14;
    background-color: transparent;
    animation: fadeIn 0.3s ease-in-out; /* Smooth fade-in animation */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    width: 50%; /* Smaller modal for a sleeker look */
    animation: slideDown 0.3s ease-in-out; /* Slide-down animation */
	position: relative;
	margin-top: 14vh;
	max-height: 100vh;
	overflow-y: auto;
}

.close {
    color: #555;
    float: right;
    font-size: 20px;
    font-weight: bold;
    background: #f5f5f5;
    
    width: 35px;
    height: 35px;
    display: contents;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
	margin-left: 3rem;
	margin-bottom: 0.2rem;
}

.close:hover,
.close:focus {
    background-color: #ff4d4d; /* Red hover effect */
    color: white;
    text-decoration: none;
}

.qodef-row-grid-section {
	z-index: unset !important;
}

@media (max-width: 768px) {
    .search-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group.half-width {
        flex: 1; /* Full width on smaller screens */
    }

    .search-button {
        width: 100%; /* Full width button */
    }

    .modal-content {
        width: 95%; /* Fit almost the full screen on smaller devices */
    }

    input,
    select {
        width: 100%; /* Full width inputs */
    }
	
	.delete-room-btn {
        width: 100%; /* Full width button */
		
	}
}

/* Asigură că padding-ul și border-ul sunt incluse în dimensiunea totală */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Stiluri pentru ecrane de până la 768px */
@media (max-width: 768px) {
    .search-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group.half-width {
        flex: 1;
        min-width: 0; /* Previne probleme de redimensionare */
    }

    .search-button {
        width: 100%; /* Ocupă toată lățimea */
    }

    .modal-content {
        width: 95%; /* Aproape întreaga lățime a ecranului */
        max-height: 90vh; /* Asigură că nu depășește ecranul */
        overflow-y: auto; /* Permite scroll dacă e necesar */
    }

    input,
    select {
        width: 100%; /* Ocupă întreaga lățime */
    }
	
	.delete-room-btn {
        width: 100%; /* Full width button */
		
	}
}

/* Stiluri pentru ecrane mai mici de 480px */
@media (max-width: 480px) {
    .search-form {
        padding: 13px;
    }

    label {
        font-size: 0.8em; /* Reduce dimensiunea textului etichetelor */
    }

    .search-button {
        font-size: 0.9em; /* Text mai mic pentru buton */
        padding: 10px;
    }

    .modal-content {
        padding: 15px;
    }
	
	.delete-room-btn {
        width: 100%; /* Full width button */
		
	}
}

/* Stiluri suplimentare pentru ecrane sub 360px (ex. iPhone SE) */
@media (max-width: 360px) {
    .search-form {
        padding: 10px;
    }

    label {
        font-size: 0.75em;
    }

    .search-button {
        font-size: 0.8em;
        padding: 8px;
    }
	
	.delete-room-btn {
        width: 100%; /* Full width button */
		
	}
}

@media (max-width: 400px) {
    .form-group.half-width {
        flex-basis: 100%;
        max-width: 100%;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
    }

    .search-button {
        width: 100%;
    }

    input, select {
        width: 100%;
        min-width: 70%;
    }
	
	.delete-room-btn {
        width: 100%; /* Full width button */
		
	}
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ui-datepicker-inline.ui-datepicker {
    width: 100%;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
	background-color: #fafafa;
}

.ui-datepicker-header {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    
}

.ui-datepicker-calendar td {
    height: 60px;
    width: 60px;
    
    transition: all 0.2s ease;
    font-weight: bold;
	position: relative; /* Permite poziționarea absolută în interior */
    text-align: center; /* Aliniere centrală pentru zi și preț */
	position: relative;
    vertical-align: middle;
	font-family: unset !important;
}

.ui-datepicker-calendar .ui-state-default {
    display: flex;
    flex-direction: column; /* Pune ziua și prețul pe două rânduri */
    align-items: center; /* Centrare pe axa orizontală */
    justify-content: center;
    min-height: 40px; /* Evită suprapunerea */
    position: relative;
    background-color: #f1f1f1; /* Subtle background */
    color: #333;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

/*.ui-datepicker-calendar .ui-state-default:hover {
    background-color: #152136; /* Blue hover */
/*    color: white;
    transform: scale(1.1); /* Slight zoom 
} */

.ui-datepicker-calendar .ui-state-default {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%; /* Asigură că toate au aceeași înălțime */
}

.ui-datepicker-calendar .ui-state-default::after {
    content: attr(data-price);
    font-size: 0.75em;
    color: #152136;
    font-style: italic;
    display: block;
    height: 12px; /* Fixează înălțimea, chiar și pentru casetele fără preț */
    margin-top: 3px;
    visibility: hidden; /* Ascunde dacă nu e setat */
	margin-bottom: 5px;
}

.ui-datepicker-calendar .ui-state-default[data-price]::after {
    visibility: visible; /* Afișează doar când există un preț */
}


.ui-datepicker-calendar .ui-state-highlight {
    background-color: #28A745; /* Green highlight for today */
    color: white;
}

.ui-datepicker-calendar .ui-state-active {
    background: lightskyblue !important;  
    color: white !important;
    font-weight: bold !important;
}

/* Price Display */


.modal-content:hover {
  /*  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

.ui-datepicker-calendar td:hover {
    transform: scale(1.1);
    background-color: rgba(0, 123, 255, 0.1); /* Subtle blue */
}

.room {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    
}

.room h4 {
    margin-bottom: 10px;
}

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

.room-select label {
    font-size: 0.9em;
    color: #152136;
}

.room-select select {
    width: 60%;
    padding: 5px;
}

.add-room-btn,
.accept-btn {
    background-color: #152136;
    color: white;
    border: none;
    padding: 10px 15px;
    
    cursor: pointer;
    margin-top: 10px;
}

.add-room-btn:hover,
.accept-btn:hover {
    background-color: #23A9AF;
}

.modalRoom {
	width: 100%;
    height: 100%;
    padding: 10px;
    
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #152136;
    margin: 0;
}

/*Lunile anului in calendar*/

.month-prices {
    display: list-item;
    overflow-x: auto;
    padding: 10px;
    background-color: #fff;
    white-space: nowrap;
    justify-content: center;
    gap: 5px;
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 0.5rem;
}

.month-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    font-size: 0.9em;
    color: #333;
    
    transition: background-color 0.3s ease;
}

.month-btn:hover:not(:disabled) {
    background-color: #007BFF;
    color: white;
	cursor: pointer;
}

.month-btn span {
    font-weight: bold;
    color: #152136;
}

/* Personalizare scrollbar pentru Webkit (Chrome, Edge, Safari) */
.month-prices::-webkit-scrollbar {
    height: 8px; /* Face bara de scroll mai subțire */
}

.month-prices::-webkit-scrollbar-track {
    background: #f1f1f1; /* Culoarea de fundal a zonei de scroll */
    
}

.month-prices::-webkit-scrollbar-thumb {
    background: #bbb; /* Culoarea barei de scroll */
    
    transition: background 0.3s ease-in-out;
}

.month-prices::-webkit-scrollbar-thumb:hover {
    background: #888; /* Culoare mai închisă la hover */
}

/* Ascunde complet scrollbar-ul */
@supports (-moz-appearance:none) {
    .month-prices {
        scrollbar-width: thin;
        scrollbar-color: #bbb #f1f1f1;
    }
}




