/* Custom styles for Attendance UI */
.card-header h5 {
  font-weight: bold;
}
.table th, .table td {
  vertical-align: middle;
}
.bg-primary {
  background-color: #3546c6 !important;
}

/* Add these styles to your existing CSS */


.wage-input {
    margin-bottom: 5px;
}

.delete-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.btn-danger {
    flex-shrink: 0; /* Prevent the button from shrinking */
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-danger i {
    margin-right: 4px;
}

/* Ensure table cells have consistent height and vertical alignment */
.table td {
    vertical-align: middle;
    padding: 0.5rem;
}

/* Make sure the wage input and delete button are properly spaced */
.form-control.wage {
    /* Override default form-control width to allow horizontal layout */
    width: 150px; /* Set a fixed width for the input, slightly larger */
    flex-grow: 0;   /* Prevent it from growing */
    flex-shrink: 0; /* Prevent it from shrinking */
    margin-bottom: 0; /* Remove any residual vertical margin */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
}

/* New style for the wage input container */
.wage-input-container {
    flex: 1 1 120px;
    max-width: 150px;
}

.btn-danger {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Ensure table cells have consistent height and vertical alignment */
.table td {
    vertical-align: middle;
    padding: 0.5rem;
}

/* Time input with clock icon styles */
.time-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.time-input-container input {
    padding-right: 30px;
    cursor: pointer;
}

.clock-icon {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #6c757d;
    z-index: 3;
}

/* Ensure the time input works well on mobile devices */
@media (max-width: 768px) {
    .time-input-container .clock-icon {
        right: 8px;
        font-size: 18px;
        padding: 4px 6px;
    }
    
    .time-input-container .form-control {
        padding-right: 45px;
    }
    
    .clockpicker-popover {
        max-width: 280px !important;
    }
}

/* ClockPicker styles */
.clockpicker-popover {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Make sure the ClockPicker is visible */
.clockpicker-popover.popover {
    display: block;
    max-width: 300px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    /* Ensure it's visible even at the bottom of the page */
    margin-bottom: 20px;
}

/* Ensure the ClockPicker arrow is visible */
.clockpicker-popover .popover-title {
    background-color: #f7f7f7;
    border-bottom: 1px solid #ebebeb;
    border-radius: 5px 5px 0 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    padding: 8px 14px;
}

/* Make sure the ClockPicker content is visible */
.clockpicker-popover .popover-content {
    padding: 9px 14px;
}

/* ClockPicker canvas styles */
.clockpicker-canvas {
    position: relative;
}

.clockpicker-canvas-bg {
    fill: #f8f9fa;
}

.clockpicker-canvas-bearing {
    fill: #007bff;
}

.clockpicker-canvas-bg-trans {
    fill: rgba(0, 123, 255, 0.25);
}

.clockpicker-tick {
    fill: #495057;
}

.clockpicker-tick.active {
    fill: #007bff;
}

.clockpicker-tick:hover {
    fill: #007bff;
    cursor: pointer;
}

/* Style for the Done button to ensure it displays in English */
.clockpicker-button {
    color: #007bff;
    border: none;
    background: none;
    padding: 5px 10px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: none; /* Prevent text transformation */
}

.clockpicker-button:hover {
    color: #0056b3;
    text-decoration: none;
}