/* CSS Document */
/* Dec.10th-2025@15.36PM v.1.3  */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.wrapper {
    display: flex;
    height: 100vh;
}

/* FULL WIDTH — CALENDAR */
.full-width {
    width: 100%;
    padding: 15px;
    background: white;
    box-shadow: 2px 0px 6px rgba(0,0,0,0.15);
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

/* LEFT PANEL — CALENDAR */
.calendar-container {
    width: 70%;
    padding: 20px;
    background: white;
    box-shadow: 2px 0px 6px rgba(0,0,0,0.15);
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    margin-bottom: 10px;
}

#calendar-prev,
#calendar-next {
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

.weekdays, .days {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.days li {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    margin: 2px;
    border: 1px solid #0cc;
}

.days li:hover {
    background: #ddd;
}

.days li.inactive {
    color: #aaa;
    cursor: default;
}

.days li.active {
    background: #e6e6e6; // #007bff; // 
    color: white;
}


/*.  NEW addition START     */
/* Disable past dates */
.days li.past {
     /* color: #bbb; */
    background: repeating-linear-gradient(
        45deg,
        #e6e6e6,
        #e6e6e6 6px,
        #f4f4f4 6px,
        #f4f4f4 12px
    );
    color: #888;
    opacity: 0.85;
    cursor: default;
    pointer-events: none;
}

/* Highlight weekends */
.days li.weekend {
    background-color: rgba(255, 80, 80, 0.15);
    color: #c24040;
    font-weight: 600;
}

/* Fully booked day */
.days li.full {
    background-color: #ddd;
    color: #888;
    cursor: not-allowed;
}

/* Multi-day range highlighting */
.days li.range {
    background-color: rgba(0,123,255,0.3);
    color: #005eff;
}

/* Selected day remains visible over weekend highlight */
.days li.selected {
    background-color: #005eff !important;
    background: #db5f5f !important; 
    color: white !important;
    border: 2px solid #007bff;
}

/* Hover only on future days */
.days li:not(.past):hover {
    background: #e5e5e5;
    cursor: pointer;
}
// /*.  NEW additoin END.   */


/* Highlight today */
.days li.today {
    border: 2px solid #007bff;
    border-radius: 50%;
    font-weight: bold;
}

/* Disabled/past days */
.days li.disabled {
    color: #aaa;
    cursor: not-allowed;
}


/* RIGHT PANEL — TIME SLOTS */
.slots-container {
    width: 30%;
    padding: 20px;
    background: #f0f0f0;
}

#slots-box {
    margin-top: 20px;
    font-size: 18px;
}

.slot {
    padding: 10px;
    margin: 6px 0;
    background: #fff;
    border: 1px solid #007bff;
    border-radius: 6px;
    cursor: pointer;
}

.slot:hover {
    background: #007bff;
    color: white;
}

/* Tooltip container for booked slots */
.slot.booked {
    position: relative;
    background: #ddd !important;
    cursor: not-allowed;
}

/* Tooltip text */
.slot.booked::after {
    content: "Already booked";
    position: absolute;
    top: 50%;
    left: 105%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

/* Show tooltip on hover */
.slot.booked:hover::after {
    opacity: 1;
}


/* Modal overlay */
#booking-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* On top of all other content */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black with transparency */
}

/* Modal content box */
#booking-modal .modal-content {
    background-color: #fff;
    margin: 10% auto; /* 10% from top, center horizontally */
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px; /* Limit the max width */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Close button */
#booking-modal button {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#booking-modal button:hover {
    background-color: #0056b3;
}


.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}
/*
.booked-slot {
    background-color: #2196F3; 
    background: #2196F3; 
    color: #fff;
    cursor: not-allowed;
    height: 80px;
    position: relative;
    margin: 6px;
    padding: 6px;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
}
*/

.free-slot {
    background: #eee; /* gray free slot */
    color: #000;
}

.free-slot:hover {
    background: #c8e6c9; /* hover green */
}


//   last additon with 

.calendar-timeline {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    font-family: Arial, sans-serif;
}

.calendar-timeline {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
}

.calendar-day {
    flex: 0 0 150px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background: #f9f9f9;
}

.calendar-day h4 {
    text-align: center;
    margin: 5px 0;
    font-size: 14px;
}

.slot {
    position: relative;
    border-radius: 3px;
    margin: 2px 0;
    padding: 0;
    cursor: pointer;
}

.slot span {
    display: block;
    line-height: 30px;
    text-align: center;
    font-size: 12px;
}





/* Calendar Layout   another last addition*/
.calendar-container {
    width: 100%;
    overflow-x: auto;
    font-family: Arial, sans-serif;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 10px;
}

.calendar-header h2 {
    font-size: 24px;
    margin: 0;
}

.navigation-btn {
    padding: 10px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.navigation-btn:hover {
    background-color: #1976D2;
}



.calendar-day {
    flex: 0 0 150px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background: #f9f9f9;
}

.calendar-day h4 {
    text-align: center;
    margin: 5px 0;
    font-size: 14px;
}

.slot {
    position: relative;
    border-radius: 3px;
    margin: 2px 0;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    // height: 80px;
}

.booked-slot {
    background-color: #2196F3; /* blue for booked */
    background: #2196F3; /* blue for booked */
    color: #fff;
    cursor: not-allowed;
    height: 80px;
    color: #fff;
    border-radius: 6px;
}

.slot span {
    display: block;
    line-height: 1.5; 
}





// Additional buttons to call and email:;
/*
.slot-hover-actions {
    display: none;
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 10;
}
*/


.slot-hover-actions {
    display: none;
    position: absolute;
    bottom: 4px;
    right: 4px;
}


/* Weekend highlighting for week calendar */
.calendar-day.weekend {
    background: #f0f4f4; /* light red tint */
    border-color: #f2bcbc;
}

.calendar-day.weekend h4 {
    color: #c62828;
    font-weight: bold;
}


/* BUTTONS */
input[type=submit],
input[type=button],
button,
a.button,
.button {
 	display: inline-block; position: relative; padding: 1.5em 2.5em; font-size: 10px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; outline: 0; background: #fff; border: 3px solid #333; color: #333; text-transform: uppercase; text-shadow: none; border-radius: 0;
	}
input[type=submit]:hover,
input[type=button]:hover,
button:hover,
a.button:hover{
 	color: #fff; background-color: #333;
	}
input[type=submit]:active,
input[type=button]:active,
button:active,
a.button:active {
 	background-color: #555; border-color: #555;
	}
/* Large Buttons */
input[type=submit].big,
input[type=button].big,
button.big,
a.button.big {
 	font-size: 1.0em; padding: 1.2em 2.6em;
	}
/* Buttons with icons */
input[type=submit] i,
input[type=button] i,
button i,
a.button i {
 	line-height: 1; font-size: 18px; margin-right: 0.4em; margin-left: -0.4em;
	}
input[type=submit].big i,
input[type=button].big i,
button.big i,
a.button.big i {
    font-size: 28px; line-height: 0; vertical-align: sub;
	}
/* red buttons  */
input[type=submit].red,
input[type=button].red,
button.red,
a.button.red {
 	color: #FF6140; border-color: #FF6140; 
	}
input[type=submit].red:hover,
input[type=button].red:hover,
button.red:hover,
a.button.red:hover {
    background-color: #FF6140; border-color: #FF6140; color: #fff;
	}
/* green buttons  */
input[type=submit].green,
input[type=button].green,
button.green,
a.button.green {
 	color: #5BCF80; border-color: #5BCF80;
	}
input[type=submit].green:hover,
input[type=button].green:hover,
button.green:hover,
a.button.green:hover {
    background-color: #5BCF80; border-color: #5BCF80; color: #fff;
	}

	
		
/* SHORTCODES PAGE */
.show-buttons .button {
 	margin: 0 1em 1em 0;
}
