html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.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;
}

/* Sticky dark footer */
.footer-dark {
    background-color: #000;
    color: #fff;
}

/* Ensure links are blue in the dark footer */
.footer-dark a {
    color: #0d6efd !important; /* Bootstrap primary blue */
    text-decoration: none;
}

.footer-dark a:hover,
.footer-dark a:focus {
    color: #69a6ff !important;
    text-decoration: underline;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #e6efff;
}
.hero-icon {
    font-size: clamp(48px, 7vw, 96px);
    color: var(--bs-primary);
}
.hero-title {
    line-height: 1.2;
}

/* Optional: nicer card shadows on hover */
.card.hoverable, .card.shadow-sm {
    transition: transform .2s ease, box-shadow .2s ease;
}
.card.hoverable:hover, .card.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

/* Contact Us */
.contact-tile {
    background: #fff;
    border: 1px solid rgba(0,0,0,.05);
}
.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
}
.contact-tile a { color: var(--bs-primary); }
.contact-tile a:hover { text-decoration: underline; }

/* FAQs */
.list-group .list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .25);
}

/* Footer multi-column (cyan/teal background like Zuri) */
.footer-multicolumn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
}
.footer-multicolumn a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}
.footer-multicolumn a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-multicolumn .footer-heading {
    font-weight: 600;
    margin-bottom: .75rem;
}
.footer-multicolumn .footer-brand {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.footer-multicolumn .list-inline-item a {
    font-size: 1.25rem;
}
.footer-multicolumn .btn-outline-light {
    border-color: rgba(255,255,255,.5);
}
.footer-multicolumn .btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

/* Condition Setup */
.hover-shadow {
    transition: all 0.2s ease;
    cursor: pointer;
}

.hover-shadow:hover {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    border-color: var(--bs-primary) !important;
}

.form-check-input:checked ~ .form-check-label {
    color: var(--bs-primary);
}

/* Appointment Details */
.badge-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.callout {
    border-left: 4px solid;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.callout-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
}

.callout-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.table-borderless td {
    border: none;
    padding: 0.5rem 0;
}

/* Chat Messages */
.chat-container {
    height: calc(100vh - 200px);
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.conversations-sidebar {
    width: 350px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.chat-search {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

    .conversation-item:hover,
    .conversation-item.active {
        background: #f8f9fa;
    }

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.conversation-info {
    flex: 1;
    margin-left: 12px;
}

.conversation-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.conversation-last-message {
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    font-size: 0.75rem;
    color: #999;
}

.unread-badge {
    background: #007bff;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.online-indicator {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    bottom: 0;
    right: 0;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

@@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 60%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.message.received .message-bubble {
    background: white;
    border-bottom-left-radius: 4px;
}

.message.sent .message-bubble {
    background: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.7;
}

.chat-input-container {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 20px;
    outline: none;
}

    .chat-input:focus {
        border-color: #007bff;
    }

.send-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: background 0.2s;
}

    .send-button:hover {
        background: #0056b3;
    }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 20px;
    }