@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Remove FullCalendar CSS imports as they're now loaded via CDN */

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.calendar-wrapper {
    min-height: 600px;  /* Increased from 400px */
    padding: 2.5rem;    /* Increased padding */
    background: #fff;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    margin: 2rem 0;     /* More margin */
}

.navigation-buttons .btn-group {
    margin-bottom: 10px;
}

.navigation-buttons .btn i.material-icons {
    vertical-align: middle;
    font-size: 18px;
    margin-right: 5px;
}

.navigation-buttons .btn {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navigation-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-menu .dropdown-item i.material-icons {
    vertical-align: middle;
    font-size: 16px;
    margin-right: 8px;
}

.dropdown-menu {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.alert i.material-icons {
    float: left;
    margin-right: 10px;
    font-size: 24px;
}

.card-footer .dropdown {
    display: inline-block;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 1.25rem;
}

@media (max-width: 767px) {
    .navigation-buttons {
        text-align: center;
        margin-top: 15px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin: 5px 0;
    }
}

.service-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.service-info h3 {
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-info p {
    color: #7F8C8D;
}

.alert-info {
    background-color: #EBF5FB;
    border-color: #AED6F1;
    color: #3498DB;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 2rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
}

#appointment-calendar {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    min-height: 500px;
    height: auto !important;
}

.fc-event {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px !important;     /* More rounded corners */
    font-size: 14px !important;        /* Larger text */
    font-weight: 500 !important;       /* Medium weight */
    padding: 4px 8px !important;       /* More padding */
    margin: 3px 0 !important;          /* Space between events */
}

.fc-event:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Ensure event text is readable */
.fc-event-title,
.fc-event-time {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.appointment-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.fc-day-today {
    background-color: rgba(52, 152, 219, 0.1) !important;
}

.fc-event.unavailable {
    background-color: #e74c3c;
    border-color: #c0392b;
}

.fc-event.available {
    background-color: #2ecc71;
    border-color: #27ae60;
}

.calendar-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: #fff;
    z-index: 9999;
    animation: slideIn 0.5s ease;
}

.calendar-notification.success { background-color: #2ecc71; }
.calendar-notification.error { background-color: #e74c3c; }
.calendar-notification.warning { background-color: #f1c40f; }

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.fc .fc-timegrid-slot {
    height: 4em !important;  /* Increased from 2.5em for more space */
}

.fc .fc-non-business {
    background: #f8f9fa;
}

.fc-timegrid-slot-label {
    vertical-align: middle;
    padding-right: 10px !important;  /* More space after time labels */
    font-weight: 500;
    font-size: 13px;
}

/* Compact view for non-business hours */
.fc-timegrid-slot.fc-timegrid-slot-lane.fc-non-business {
    display: none;
}

.fc-timegrid-slot {
    cursor: pointer;
}

.fc-timegrid-slot.fc-timegrid-slot-lane:hover {
    background-color: rgba(46, 204, 113, 0.1);
}

.fc-highlight {
    background-color: rgba(46, 204, 113, 0.2) !important;
}

.fc-non-business {
    background: #f8f9fa !important;
    cursor: not-allowed;
}

.booked-slot {
    background-color: #ff6b6b !important;
    border-color: #ff5252 !important;
    color: white !important;
    cursor: not-allowed !important;
}

.fc-event.booked-slot:hover {
    background-color: #ff5252 !important;
}

.blocked-slot {
    background-color: #6c757d !important;
    border-color: #5a6268 !important;
    color: white !important;
    cursor: not-allowed !important;
}

.fc-event.blocked-slot:hover {
    background-color: #5a6268 !important;
}

.blocked-slot-visual {
    opacity: 0.8;
}

.fc { 
    height: 100%; 
    min-height: 700px;  /* Ensure minimum height for the calendar */
}

/* Make the calendar container itself larger */
#appointment-calendar {
    min-height: 700px;
    margin: 20px 0;
}

/* Add space to calendar header */
.fc-header-toolbar {
    margin-bottom: 1.5em !important;
    padding: 10px 0;
}

/* Make calendar cells slightly wider */
.fc-timegrid-axis {
    width: 80px !important;  /* More space for time labels */
}

/* Add subtle borders between days */
.fc-timegrid-col {
    border-left: 1px solid #e9ecef;
}

/* Better spacing for day headers */
.fc-col-header-cell {
    padding: 10px 5px !important;
    font-weight: 600;
    font-size: 14px;
}

.fc-timegrid-slot { 
    height: 80px !important;  /* Increased from 70px for more breathing room */
}

.fc-timegrid-slot-lane { 
    background-color: #f8f9fa; 
}

.fc-time-grid-event.fc-event {
    margin: 4px 2px;    /* Increased margin for more space between events */
    padding: 6px 8px;   /* More padding inside events */
    border-radius: 4px; /* Rounded corners for softer look */
}

.available-slot {
    cursor: pointer !important;
    background-color: #2f8f83 !important;
    border-color: #2f8f83 !important;
}

.selected-slot {
    background-color: #468f77 !important;
    border-color: #2c6a56 !important;
}

.fc-event-past { 
    opacity: 0.5; 
    pointer-events: none; 
}

.fc-non-business { 
    background: #eee !important; 
}
