html, body {
    background: #f5f5f5;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



/* RTL Styling */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Amiri', serif; /* Use an Arabic font */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/*.btn {
    margin-top: 1rem;
}*/

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.camera-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.camera-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 100;
    text-align: right;
}

    .camera-alert ul {
        padding-right: 20px;
    }

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-top: 5px solid #f0ad4e;
}

    .footer h5 {
        position: relative;
        padding-bottom: 0.5rem;
        font-weight: 600;
    }

        .footer h5:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 2px;
            background: #f0ad4e;
        }

    .footer a {
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer a:hover {
            color: #f0ad4e !important;
            padding-right: 5px;
        }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

    .social-icons a:hover {
        background: #f0ad4e;
        transform: translateY(-3px);
    }

.quran-verse {
    font-size: 1.5rem;
    color: #f0ad4e;
    font-family: 'Amiri', serif;
    line-height: 2.5;
}

/* Responsive Footer */
@@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

        .footer h5:after {
            right: 50%;
            transform: translateX(50%);
        }

    .social-icons {
        justify-content: center;
    }

    .quran-verse {
        font-size: 1.2rem;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-top: 5px solid #f0ad4e;
}

    .footer h5 {
        position: relative;
        padding-bottom: 0.5rem;
        font-weight: 600;
    }

        .footer h5:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 2px;
            background: #f0ad4e;
        }

    .footer a {
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer a:hover {
            color: #f0ad4e !important;
            padding-right: 5px;
        }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

    .social-icons a:hover {
        background: #f0ad4e;
        transform: translateY(-3px);
    }

.quran-verse {
    font-size: 1.5rem;
    color: #f0ad4e;
    font-family: 'Amiri', serif;
    line-height: 2.5;
}

/* Responsive Footer */
@@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

        .footer h5:after {
            right: 50%;
            transform: translateX(50%);
        }

    .social-icons {
        justify-content: center;
    }

    .quran-verse {
        font-size: 1.2rem;
    }
}

/* Results Table Styling */
.table-responsive {
    overflow-x: auto;
}

.table thead th {
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

.table tbody td {
    vertical-align: middle;
    text-align: center;
}

/* Percentage Colors */
.text-success {
    color: #28a745 !important;
}

.text-primary {
    color: #007bff !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Card Styling */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-title {
    font-weight: 600;
}


    /* Page Header */
    .page-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 2rem;
        border-radius: 15px;
        color: white;
        margin-bottom: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .page-title {
        font-weight: 700;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .page-subtitle {
        opacity: 0.9;
        font-size: 1.1rem;
    }

    /* Summary Cards */
    .summary-card {
        border-radius: 15px;
        border: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

        .summary-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

    .summary-icon {
        opacity: 0.8;
    }

    .card-number {
        font-weight: 700;
        font-size: 2.5rem;
        margin: 0.5rem 0;
    }

    /* Table Styling */
    .table {
        margin-bottom: 0;
    }

        .table th {
            font-weight: 700;
            text-align: center;
            background-color: #2c3e50;
            color: white;
            border-bottom: none;
            padding: 1rem;
        }

        .table td {
            vertical-align: middle;
            padding: 1rem;
            text-align: center;
        }

    .table-hover tbody tr:hover {
        background-color: rgba(52, 152, 219, 0.05);
        transition: background-color 0.2s ease;
    }

    /* Avatar */
    .avatar {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f8f9fa;
    }

        .avatar i.fa-male {
            color: #3498db;
        }

        .avatar i.fa-female {
            color: #e84393;
        }

        .avatar i.fa-user-circle {
            color: #7f8c8d;
        }

    /* National ID */
    .national-id {
        background: #f8f9fa;
        padding: 0.3rem 0.6rem;
        border-radius: 5px;
        font-family: monospace;
        font-size: 0.9rem;
        color: #2c3e50;
    }

    /* Badges */
    .badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-weight: 500;
    }

    .badge-male {
        background-color: #3498db !important;
        color: white;
    }

    .badge-female {
        background-color: #e84393 !important;
        color: white;
    }

    /* Date Cell */
    .date-cell {
        background: #f8f9fa;
        padding: 0.3rem 0.6rem;
        border-radius: 5px;
        font-size: 0.9rem;
        color: #495057;
    }

    /* Button Group */
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        border-radius: 5px;
    }

    /* Pagination */
    .pagination {
        margin-bottom: 0;
    }

    .page-link {
        border: none;
        color: #495057;
        margin: 0 2px;
        border-radius: 5px !important;
        transition: all 0.2s ease;
    }

        .page-link:hover {
            background-color: #e9ecef;
            color: #495057;
        }

    .page-item.active .page-link {
        background-color: #3498db;
        border-color: #3498db;
    }

    /* Filters Card */
    .card-header.bg-light {
        background-color: #f8f9fa !important;
        font-weight: 600;
        border-bottom: 1px solid #dee2e6;
    }

    /* Input Groups */
    .input-group-text {
        background-color: #f8f9fa;
        border-color: #dee2e6;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .page-title {
            font-size: 2rem;
        }

        .table-responsive {
            font-size: 0.9rem;
        }

        .btn-group {
            flex-direction: column;
        }

            .btn-group .btn {
                margin-bottom: 0.25rem;
            }

        .avatar {
            width: 30px;
            height: 30px;
        }

        .national-id {
            font-size: 0.8rem;
        }
    }

    /* Print Styles */
    @media print {
        .page-header,
        .summary-cards,
        .filters-card,
        .actions-bar,
        .pagination,
        .btn-group {
            display: none !important;
        }

        .table {
            border: 1px solid #dee2e6;
        }

            .table th,
            .table td {
                border: 1px solid #dee2e6;
                padding: 0.5rem;
            }

        .badge {
            border: 1px solid #dee2e6;
            background-color: transparent !important;
            color: #000 !important;
        }
    }
