.dnd-session-history {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

.dnd-session-history h3 {
    color: #333;
    margin-bottom: 20px;
}

.dnd-total-hours {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.dnd-time-period-filters {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dnd-time-period-filters label {
    font-weight: 500;
    color: #333;
}

.dnd-time-period-filters select,
.dnd-time-period-filters input[type="number"] {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.dnd-time-period-filters input[type="number"]#filter_day {
    width: 100px;
}

.dnd-time-period-filters input[type="number"]#filter_month {
    width: 110px;
}

.dnd-time-period-filters input[type="number"]#filter_year {
    width: 120px;
}

.dnd-btn-apply {
    padding: 6px 16px;
    border: 1px solid #007cba;
    background: #007cba;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.dnd-btn-apply:hover {
    background: #005a87;
    border-color: #005a87;
}

.dnd-sessions-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dnd-filter-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.dnd-filter-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.dnd-filter-btn:hover {
    background: #e9e9e9;
}

.dnd-filter-btn.active:hover {
    background: #005a87;
}

.dnd-per-page-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dnd-per-page-filter label {
    font-weight: 500;
    color: #333;
}

.dnd-per-page-filter select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.dnd-session-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dnd-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dnd-history-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.dnd-student-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.dnd-session-status {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.dnd-session-status.pending {
    color: #ffc107;
    background: #fff3cd;
}

.dnd-session-status.confirmed {
    color: #007bff;
    background: #cce5ff;
}

.dnd-session-status.completed {
    color: #28a745;
    background: #d4edda;
}

.dnd-session-status.cancelled {
    color: #dc3545;
    background: #f8d7da;
}

.dnd-history-details {
    margin-bottom: 10px;
}

.dnd-session-datetime {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.dnd-session-duration {
    font-size: 14px;
    color: #666;
}

.dnd-session-cancellation {
    font-size: 14px;
    color: #dc3545;
    font-style: italic;
    margin-top: 5px;
}

.dnd-session-feedback {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    font-style: italic;
    color: #495057;
}

.dnd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.dnd-page-link {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #007cba;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.dnd-page-link:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.dnd-page-link.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.dnd-page-dots {
    padding: 8px 12px;
    color: #6c757d;
}

.dnd-session-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.dnd-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.dnd-btn-confirm {
    background: #28a745;
    color: white;
}

.dnd-btn-confirm:hover {
    background: #218838;
}

.dnd-btn-reject {
    background: #dc3545;
    color: white;
}

.dnd-btn-reject:hover {
    background: #c82333;
}

.dnd-btn-cancel {
    background: #ffc107;
    color: #212529;
}

.dnd-btn-cancel:hover {
    background: #e0a800;
}

.dnd-btn-view {
    background: #17a2b8;
    color: white;
}

.dnd-btn-view:hover {
    background: #138496;
}

.dnd-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.dnd-btn-join {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.dnd-btn-join:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}
