/* Responsive font sizing */
html {
    font-size: 14px;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* RTL Arabic font support */
html[lang="ar"],
html[lang="ar"] * {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Custom focus ring */
.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;
}

/* Full height layout */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Navbar brand */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Header logo - adjust the height here to resize (width follows the aspect ratio) */
img.site-logo {
    height: 80px;
    width: auto;
}

/* Event details card (Register page) */
.event-title {
    color: #0d6efd;
    font-size: 1.75rem;
    font-weight: 600;
}

.event-lecturer {
    color: #dc3545;
    font-weight: 700;
}

/* Link color */
a {
    color: #0077cc;
}

/* Primary button override */
.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Active nav pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Borders */
.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

/* Box shadow */
.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

/* Footer */
footer {
    height: 60px;
    line-height: 40px;
}

/* Selected row highlight (for tables) */
.selected-row {
    background-color: #d4edda;
}

/* Table scroll container */
.table-scroll {
    max-height: 400px;
    overflow: auto;
}

/* GridView sortable header */
.table th a {
    color: #fff;
    text-decoration: none;
}

.table th a:hover {
    color: #cfe2ff;
    text-decoration: underline;
}

/* Status badges in grid */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Detail view labels */
.form-label.text-muted {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

/* Card section titles */
.card-title.border-bottom {
    font-size: 1rem;
    color: #495057;
}

/* GridView pager - Bootstrap style */
.gv-pager td {
    border: none !important;
    padding: 0.75rem 0;
}

.gv-pager table {
    margin: 0 auto;
}

.gv-pager td table td {
    padding: 0 2px;
}

.gv-pager a,
.gv-pager span {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #0d6efd;
    background-color: #fff;
    min-width: 36px;
    text-align: center;
}

.gv-pager a:hover {
    background-color: #e9ecef;
    color: #0a58ca;
    border-color: #dee2e6;
}

.gv-pager span {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    font-weight: 600;
}

/* RTL text fields */
[dir="rtl"] {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    text-align: right;
}

/* Bilingual label alignment */
.form-label .ar-label {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
    unicode-bidi: bidi-override;
    display: inline;
}

.form-label {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
}

.form-label .text-danger {
    margin-left: 0.25rem;
}

/* Registration form card */
.registration-card {
    max-width: 700px;
    margin: 0 auto;
}

/* Success message */
.alert-success-custom {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
}

/* Error message */
.alert-danger-custom {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
}
