/* ---------- Header ---------- */
.appmenu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1b3c79, #162f60);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
}

.user-photo-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #fff;
}

.user-photo-wrapper img.user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Account Cards ---------- */
.account-card {
    background: linear-gradient(135deg, #1b3c79, #162f60);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    margin-bottom: 20px;
}

.account-card .col i {
    display: block;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

/* ---------- Quick Actions ---------- */
.d-flex.justify-content-center.flex-nowrap a .bg-white {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.d-flex.justify-content-center.flex-nowrap a .bg-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}



/* ---------- Group Cards ---------- */
.card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card .card-body i {
    font-size: 1.5rem;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .account-card .row {
        text-align: center;
    }

    .d-flex.justify-content-center.flex-nowrap {
        overflow-x: auto;
        gap: 10px;
    }

   
}

/* ---------- Quick Actions Container ---------- */
.d-flex.justify-content-center.flex-nowrap {
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 6px;  /* very tight spacing */
}

/* ---------- Ultra-Compact Action Buttons ---------- */
.action-btn {
    background: linear-gradient(135deg, #1b3c79, #162f60);
    color: #fff;
    border-radius: 8px;
    padding: 5px 8px;
    min-width: 45px;
    max-width: 60px;
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.65rem; /* tiny font */
    flex-shrink: 0;
}

/* Hover & Focus Effects */
.action-btn:hover,
.action-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    filter: brightness(1.1);
    outline: none;
}

.action-btn:focus {
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.6);
}

/* Ultra-Compact Icons */
.action-btn i {
    font-size: 0.85rem;  /* about 14px */
    margin-bottom: 3px;
    transition: transform 0.15s ease, color 0.15s ease, font-size 0.2s ease;
    color: #fff;
}

/* Icon hover animation */
.action-btn:hover i {
    transform: scale(1.1);
}

/* Ultra-Compact Labels */
.action-label {
    font-size: 0.6rem; /* ~9.6px */
    font-weight: 600;
    text-align: center;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    transition: font-size 0.2s ease;
}

/* ---------- Responsive Adjustments for Small Devices ---------- */
@media (max-width: 768px) {
    .action-btn {
        min-width: 70px;
        max-width: 100px;
        height: 95px;
        padding: 10px;
        font-size: 0.85rem;
    }

    .action-btn i {
        font-size: 1.5rem;
    }

    .action-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .action-btn {
        min-width: 60px;
        max-width: 90px;
        height: 85px;
        padding: 8px;
        font-size: 0.8rem;
    }

    .action-btn i {
        font-size: 1.3rem;
    }

    .action-label {
        font-size: 0.8rem;
    }
}




           
.chat-button {
    position: fixed;
    bottom: 15%;
    right: 15px;
    transform: translateY(-50%);
    background-color: #1b3c79;
    color: #fff;
    width: 70px; /* increased from 50px */
    height: 70px; /* increased from 50px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* bigger icon/text size */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 999999 !important;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    pointer-events: auto;
}

/* Hover animation */
.chat-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive version */
@media (max-width: 768px) {
    .chat-button {
        bottom: 80px;
        right: 15px;
        width: 60px; /* slightly smaller for mobile */
        height: 60px;
        font-size: 1.8rem;
    }
}


/* ---------- Bottom Navigation Bar ---------- */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        background: #fff;
        border-top: 1px solid #dee2e6;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    }

    .bottom-nav a,
    .bottom-nav button {
        flex: 1;
        text-align: center;
        text-decoration: none;
        color: inherit;
        padding: 6px 0;
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
    }

    .bottom-nav a.active {
        color: #0d6efd;
        font-weight: 600;
    }

    .bottom-nav a.active i {
        color: #0d6efd;
    }

    @media (min-width: 768px) {
        .bottom-nav {
            display: none; /* Hide bottom nav on larger screens if not needed */
        }
    }



/* ---------- GreenRobot Themed Card ---------- */
    .greenrobot-card {
      max-width: 800px;
      margin: 40px auto;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      overflow: hidden;
    }
    .header-section {
      background: linear-gradient(135deg, #1b3c79, #162f60);
      color: #fff;
      text-align: center;
      padding: 30px 20px;
    }
    .header-section h1 {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: 1px;
    }
    .header-section p {
      font-size: 1rem;
      margin: 0;
    }
      /* Your compact thead and table styling */
    .table thead th {
      background: linear-gradient(135deg, #1b3c79, #162f60);
      color: #fff;
      text-transform: uppercase;
      text-align: center;
      font-weight: 400;
      font-size: 0.5rem;       /* reduced from 0.7rem */
      padding: 0.3rem 0.4rem;
      line-height: 1.1;
    }

    .table td {
      text-align: center;
      font-weight: 500;
    }

    .table-striped tbody tr:nth-of-type(odd) {
      background-color: #f2fff7;
    }

    /* Optional: base table styling */
    .table {
      border-collapse: collapse;
      width: 100%;
    }

    .table th, .table td {
      border: 1px solid #ccc;
    }
    .footer-section {
     background: linear-gradient(135deg, #1b3c79, #162f60);
      color: #fff;
      text-align: center;
      padding: 20px;
      font-size: 0.95rem;
      line-height: 1.6;
    }
    .footer-section strong {
      color: #ffeb3b;
    }
    @media (max-width: 576px) {
      .header-section h1 { font-size: 1.5rem; }
      .table th, .table td { font-size: 0.9rem; }
    }
