﻿
.appointment-success-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.success-icon {
    font-size: 90px;
    color: #22c55e;
    margin-bottom: 20px;
}

.success-title {
    font-weight: 700;
    color: #0f172a;
}

.success-subtitle {
    color: #64748b;
    font-size: 16px;
}

.appointment-number {
    text-align: center;
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
}

    .appointment-number h4 {
        color: #0f766e;
        font-weight: 700;
        letter-spacing: 2px;
    }

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    min-height: 48px;
}

.instruction-box {
    background: #ecfeff;
    border-left: 5px solid #14b8a6;
    padding: 25px;
    border-radius: 12px;
}

    .instruction-box h5 {
        color: #0f766e;
        margin-bottom: 20px;
    }

    /*CSS styles appointment*/
.appointment-selection {
    max-width: 1100px;
}

.appointment-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    text-decoration: none;
    color: #333;
    height: 100%;
    border: 1px solid #e8e8e8;
    transition: .35s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

    .appointment-card:hover {
        text-decoration: none;
        color: inherit;
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,.15);
    }

    .appointment-card .icon {
        width: 90px;
        height: 90px;
        margin: auto;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 25px;
        font-size: 40px;
    }

.old-patient .icon {
    background: rgba(13,110,253,.12);
    color: #0d6efd;
}

.new-patient .icon {
    background: rgba(25,135,84,.12);
    color: #198754;
}

.appointment-card h3 {
    font-weight: 700;
    margin-bottom: 18px;
}

.appointment-card p {
    color: #6c757d;
    line-height: 1.7;
    min-height: 90px;
}

.appointment-card .btn {
    margin-top: 10px;
    border-radius: 30px;
    font-weight: 600;
    pointer-events: none;
}

/* Hover Effects */

.old-patient:hover {
    border-color: #0d6efd;
}

.new-patient:hover {
    border-color: #198754;
}

/* Mobile */

@media (max-width:768px) {

    .appointment-card {
        padding: 35px 25px;
    }

        .appointment-card p {
            min-height: auto;
        }
}

/* =========================================
   Insurance Card Camera
========================================= */

.insurance-number-wrapper {
    display: flex;
    width: 100%;
}

    .insurance-number-wrapper .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.btn-camera {
    width: 52px;
    min-width: 52px;
    border: 1px solid #ced4da;
    border-left: 0;
    background-color: #f4dfbd;
    color: #24858b;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .btn-camera:hover {
        background-color: #e8c990;
        color: #176c71;
    }

    .btn-camera i {
        font-size: 20px;
    }


/* =========================================
   Camera
========================================= */

.camera-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#insuranceCamera {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}


/* =========================================
   Camera Guide
========================================= */

.camera-guide {
    position: absolute;
    width: 80%;
    height: 45%;
    left: 10%;
    top: 27.5%;
    pointer-events: none;
}


/* Corners */

.guide-corner {
    position: absolute;
    width: 35px;
    height: 35px;
    border-color: #ffffff;
    border-style: solid;
}

.top-left {
    top: 0;
    left: 0;
    border-width: 4px 0 0 4px;
}

.top-right {
    top: 0;
    right: 0;
    border-width: 4px 4px 0 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 4px 4px;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-width: 0 4px 4px 0;
}


/* =========================================
   OCR status
========================================= */

.ocr-status {
    font-size: 14px;
    color: #6c757d;
    min-height: 24px;
}

    .ocr-status.processing {
        color: #0d6efd;
    }

    .ocr-status.success {
        color: #198754;
        font-weight: 600;
    }

    .ocr-status.error {
        color: #dc3545;
        font-weight: 600;
    }


/* =========================================
   OCR Result
========================================= */

.ocr-result-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* =========================================
   Insurance Card Preview
========================================= */

.insurance-card-preview-container {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #f8f9fa;
}


/* Header */

.insurance-card-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #24858b;
    font-weight: 600;
    font-size: 15px;
}


/* Image container */

.insurance-card-preview {
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    text-align: center;
}


    /* Image */

    .insurance-card-preview img {
        display: block;
        width: 100%;
        max-height: 350px;
        object-fit: contain;
        margin: 0 auto;
    }


/* Delete button */

.btn-remove-insurance {
    border: none;
    background: transparent;
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}

    .btn-remove-insurance:hover {
        color: #a71d2a;
    }