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%;
}

/* ---- Global App Background ---- */
body {
    background: radial-gradient(circle at top center, #f5f6f8 0%, #e3e5e8 40%, #d6d8dc 100%);
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* Optional: make cards pop */
.card {
    background-color: #ffffff;
    border: 1px solid #d6d8dc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
    .card:hover i {
        opacity: 0.8;
        transform: scale(1.1);
        transition: all 0.3s ease;
    }

/* Optional: enhance buttons with gradient style */
.btn-primary {
    background: linear-gradient(to right, #2c82ff, #367efb);
    border: none;
}

/* ---- Login Page Styles ---- */
.login-page-wrapper {
    margin-top: 60px;
}

.login-logo {
    max-height: 200px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .login-logo {
        max-height: 90px;
    }
}
/* ====== Brand Colours ====== */
.icon-primary {
    color: #663399; /* Rebecca Purple */
}

.icon-accent1 {
    color: #00BFFF; /* Sky Blue */
}

.icon-accent2 {
    color: #32CD32; /* Lime Green */
}

.icon-accent3 {
    color: #FFA500; /* Soft Orange */
}

/* ====== Card Hover Effects ====== */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 1rem;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

        .dashboard-card:hover i {
            transform: scale(1.1);
            opacity: 0.9;
            transition: all 0.3s ease;
        }

.message-thread {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #f4f6f8;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.message-bubble {
    border-radius: 16px;
    padding: 10px 15px;
    max-width: 65%;
    word-wrap: break-word;
    position: relative;
}

.bubble-sent {
    background-color: #cce5ff;
    color: #000;
    border-top-right-radius: 0;
}

.bubble-received {
    background-color: #f1f1f1;
    color: #000;
    border-top-left-radius: 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background-color: #6c757d;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message-meta {
    font-size: 0.75rem;
    margin-top: 6px;
    text-align: right;
}
.nav-link {
    font-weight: 500;
    border-radius: 6px;
    padding: 10px;
    transition: background 0.2s ease;
}

    .nav-link:hover {
        background-color: #f8f9fa;
    }

    .nav-link.active {
        background-color: #e7f1ff;
        color: #0d6efd;
        font-weight: 600;
    }
