.bb-attendance-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.bb-attendance-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bb-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
    text-decoration: none;
    display: inline-block;
}

.bb-btn-primary {
    background: #007cba;
    color: white;
}

.bb-btn-secondary {
    background: #666;
    color: white;
}

.bb-btn:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

.bb-report-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.bb-report-section select {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bb-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.bb-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bb-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bb-type-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bb-type-section h4 {
    margin: 0 0 15px 0;
    color: #007cba;
    border-bottom: 2px solid #007cba;
    padding-bottom: 5px;
}

.bb-regular-section {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.bb-regular-section h4 {
    color: #6c757d;
    border-bottom-color: #6c757d;
}

.bb-attendance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 4px;
}

.bb-regular-section .bb-attendance-item {
    background: #fff;
}

.bb-attendance-date {
    font-weight: bold;
}

.bb-attendance-time {
    color: #666;
}

.bb-delete-record {
    color: #dc3545;
    cursor: pointer;
}

.bb-delete-record:hover {
    color: #bd2130;
}

.bb-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.bb-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.bb-modal-close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.bb-modal-close:hover {
    color: #000;
}

.bb-form-group {
    margin-bottom: 15px;
}

.bb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.bb-form-group input,
.bb-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bb-noting-form {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bb-noting-form .bb-form-group {
    margin-bottom: 15px;
}

.bb-noting-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.bb-noting-form .bb-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bb-noting-form .bb-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.bb-noting-form .bb-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.bb-noting-form .bb-form-actions .bb-btn {
    flex: 1;
}

/* Additional styles for attendance page */
.bb-today-summary {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #007cba;
}

.bb-today-summary h4 {
    margin: 0 0 10px 0;
    color: #007cba;
}

.bb-attendance-type {
    font-weight: bold;
    color: #333;
}

/* Add styles for the report table */
.bb-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.bb-report-table th,
.bb-report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.bb-report-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.bb-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #007cba;
}

.bb-summary h4 {
    margin: 0 0 10px 0;
    color: #007cba;
}

.bb-summary p {
    margin: 5px 0;
}

.bb-collapsible-header {
    background: #f5f5f5;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-collapsible-header:hover {
    background: #eee;
}

.bb-collapsible-header h3 {
    margin: 0;
}

.bb-collapsible-header .bb-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.bb-collapsible-header.collapsed .bb-toggle-icon {
    transform: rotate(-90deg);
}

.bb-collapsible-content {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 15px;
    display: none;
}

.bb-attendance-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
}

.bb-animation-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 200px;
}

.bb-loading-circle {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.bb-success-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    margin: 0 auto 15px;
    position: relative;
    background: #4CAF50;
    animation: scale 0.3s ease-in-out;
}

.bb-success-checkmark:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    height: 25px;
    width: 12px;
    border-bottom: 4px solid white;
    border-right: 4px solid white;
    animation: check 0.4s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scale {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes check {
    0% { height: 0; width: 0; opacity: 0; }
    40% { height: 0; width: 12px; opacity: 1; }
    100% { height: 25px; width: 12px; opacity: 1; }
}

.bb-animation-text {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.bb-id-entry-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.bb-id-entry-form .bb-form-group {
    margin-bottom: 20px;
}

.bb-id-entry-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.bb-id-entry-form .bb-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.bb-id-entry-form .bb-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.bb-form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.bb-form-actions .bb-btn {
    flex: 1;
    max-width: 200px;
}

/* Calendar styling for Friday and Saturday */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Style for Friday (5th day) */
input[type="date"]::-webkit-calendar-picker {
    --friday-color: #ffebeb;
}

input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
    background-color: transparent;
}

/* This targets the calendar grid */
::-webkit-calendar-picker {
    color: #000000;
}

/* Friday (5) and Saturday (6) styling */
input[type="date"]::-webkit-calendar-picker td:nth-child(6),  /* Friday */
input[type="date"]::-webkit-calendar-picker td:nth-child(7) { /* Saturday */
    color: red;
}

/* For Firefox */
input[type="date"] {
    position: relative;
}

input[type="date"]::-moz-calendar-picker {
    background: white;
}

input[type="date"]::-moz-calendar-grid {
    color: #000000;
}

/* Style the calendar days - Firefox specific */
@-moz-document url-prefix() {
    input[type="date"] {
        position: relative;
    }
    
    input[type="date"]::-moz-calendar-picker-indicator {
        cursor: pointer;
    }
}

.weekend-day {
    background: #ffebeb !important;
    color: #cc0000 !important;
}

.weekend-day a {
    color: #cc0000 !important;
}

/* Make datepicker match our theme */
.ui-datepicker {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ui-datepicker-header {
    background: #f5f5f5;
    border: none;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker th {
    padding: 8px;
    color: #666;
}

.ui-datepicker td {
    padding: 2px;
}

.ui-datepicker td a {
    text-align: center;
    border-radius: 4px;
}

.ui-datepicker td a.ui-state-active {
    background: #007cba;
    color: white;
}

.ui-datepicker td a.ui-state-highlight {
    background: #e6f3fa;
    color: #007cba;
}
#bb-submit-attendance {
    display: none;
}