*{
    font-family: "Cairo", sans-serif;
}

.header-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.visit-card {
    border-right: 4px solid #f2c200;
    background: #fffdd0;
    padding: 12px;
    margin-bottom: 10px;
}

.visit-card-now {
    border-right: 5px solid #ff5722;
    background: linear-gradient(90deg, #fff3e0, #ffffff);
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
    position: relative;
}

.appointment-card {
    border-right: 4px solid #17a2b8;
    background: #c8f1ff;
    padding: 12px;
    margin-bottom: 10px;
}

.badge-status {
    font-size: 12px;
}

.doctor-name {
    font-weight: bold;
}

.file-no {
    color: #555;
    font-size: 13px;
}

.time {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.duration {
    font-size: 12px;
    color: #555;
}

.action-icons a {
    margin-left: 10px;
    font-size: 13px;
    text-decoration: none;
    color: #007bff;
}

.action-icons a:hover {
    text-decoration: underline;
}

.divider {
    border-top: 1px dashed #ccc;
    margin: 10px 0;
}

.bbg-hover {
    opacity: 1;
    transition: 0.6s;
}

.bbg-hover:hover {
    background-color: #282828 !important;
    cursor: pointer;
}

table.dataTable tbody td {
    vertical-align: middle;
}

.swal2-popup .swal2-title {
    font-size: 15px!important;
}

button.swal2-close {
    font-size: 30px!important;
}

.table-wrapper{
    max-height: 60vh; overflow-y: auto;
}

.table-wrapper thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    box-shadow: 0 2px 2px rgba(0,0,0,.05);
    z-index: 10;
}

.fc-timegrid-event .fc-event-title {
    white-space: normal;
    font-size: 12px;
    line-height: 1.2;
}

.fc-list-day.fc-day-today
.fc-list-day-cushion.fc-cell-shaded {
    background-color: #fff3cd !important;
    border-right: 5px solid #ffc107;
}

.fc-list-day.fc-day-today
.fc-list-day-cushion.fc-cell-shaded a {
    font-weight: bold;
    color: #856404;
}

a.fc-event.fc-event-start.fc-event-end.fc-event-future.fc-timegrid-event.fc-v-event.fc-timegrid-event-short {
    height: 50px!important;
}

html[dir="rtl"] div.dt-buttons {
    position: absolute;
    left: 0px;
}

/* Custom Buttons */
.btn.btn-outline {
    background-color: transparent;
    color: var(--bs-btn-color) !important;
}

.btn.btn-pending {
    --bs-btn-color: #000;
    --bs-btn-bg: #ffc107;
    --bs-btn-border-color: #ffc107;

    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #e0a800;
    --bs-btn-hover-border-color: #d39e00;

    --bs-btn-focus-shadow-rgb: 255, 193, 7;

    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #d39e00;
    --bs-btn-active-border-color: #c69500;

    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #ffc107;
    --bs-btn-disabled-border-color: #ffc107;
}

.btn.btn-confirmed {
    --bs-btn-color: #000;
    --bs-btn-bg: #28a745;
    --bs-btn-border-color: #28a745;

    --bs-btn-hover-bg: #218838;
    --bs-btn-hover-border-color: #1e7e34;

    --bs-btn-focus-shadow-rgb: 40, 167, 69;

    --bs-btn-active-bg: #1e7e34;
    --bs-btn-active-border-color: #1c7430;
}

.btn.btn-checked-in {
    --bs-btn-color: #000;
    --bs-btn-bg: #0dcaf0;
    --bs-btn-border-color: #0dcaf0;

    --bs-btn-hover-bg: #31d2f2;
    --bs-btn-hover-border-color: #25cff2;

    --bs-btn-focus-shadow-rgb: 13, 202, 240;

    --bs-btn-active-bg: #25cff2;
    --bs-btn-active-border-color: #1fbfd8;
}

.btn.btn-in-consultation {
    --bs-btn-color: #000;
    --bs-btn-bg: #6f42c1;
    --bs-btn-border-color: #6f42c1;

    --bs-btn-hover-bg: #59339d;
    --bs-btn-hover-border-color: #533093;

    --bs-btn-focus-shadow-rgb: 111, 66, 193;

    --bs-btn-active-bg: #533093;
    --bs-btn-active-border-color: #4e2b8a;
}

.btn.btn-completed {
    --bs-btn-color: #000;
    --bs-btn-bg: #6c757d;
    --bs-btn-border-color: #6c757d;

    --bs-btn-hover-bg: #5c636a;
    --bs-btn-hover-border-color: #565e64;

    --bs-btn-focus-shadow-rgb: 108, 117, 125;
}

.btn.btn-cancelled {
    --bs-btn-color: #000;
    --bs-btn-bg: #dc3545;
    --bs-btn-border-color: #dc3545;

    --bs-btn-hover-bg: #bb2d3b;
    --bs-btn-hover-border-color: #b02a37;

    --bs-btn-focus-shadow-rgb: 220, 53, 69;

    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #a52834;
}

.btn.btn-missed {
    --bs-btn-color: #000;
    --bs-btn-bg: #fd7e14;
    --bs-btn-border-color: #fd7e14;

    --bs-btn-hover-bg: #e96b05;
    --bs-btn-hover-border-color: #dc6504;

    --bs-btn-focus-shadow-rgb: 253, 126, 20;

    --bs-btn-active-bg: #dc6504;
    --bs-btn-active-border-color: #c85c04;
}

td, th {
    vertical-align: middle;
}

.a4-paper {
    background: #fff;
    width: 100%;
    aspect-ratio: 1 / 1.414; /* A4 ratio */
    box-shadow:
        0 1px 1px rgba(0,0,0,.08),
        0 10px 20px rgba(0,0,0,.15);
    border-radius: 2px;
    padding: 0;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.a4-paper:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 6px rgba(0,0,0,.12),
        0 20px 35px rgba(0,0,0,.2);
}

/* inner paper margins */
.a4-content {
    padding: 28px 32px;
    height: calc(100% - 45px);
    overflow: hidden;
}

.a4-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* footer */
.a4-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    border-top: 1px dashed #ddd;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    background: #fafafa;
}

/* hover buttons */
.paper-actions {
    position: absolute;
    bottom: 50px;
    left: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    z-index: 10;
    transition: opacity .2s ease;
}

.a4-paper:hover .paper-actions {
    opacity: 1;
}

.signature-wrapper {
    max-width: 520px;
}

.signature-card {
    background: #f9fafb;
}

.signature-canvas {
    touch-action: none;
}

.calendar-cell {
    height: 80px;
    overflow-y: auto;
}

