﻿/* Custom scrollbar hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Help Bot Chat Widget*/
.animated-bot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: float 2s ease-in-out infinite;
    font-size: 24px;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 20px;
    display: inline-block;
    clear: both;
}

    .chat-bubble.bot {
        background-color: #f3f4f6;
        color: #111827;
        float: left;
        border-top-left-radius: 0;
    }

    .chat-bubble.user {
        background-color: #6366f1;
        color: white;
        float: right;
        border-top-right-radius: 0;
    }

/* admin layout page */

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    color: #6b7280; /* gray-500 */
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
}

    .admin-tab:hover {
        color: #2563eb; /* blue-600 */
        border-color: #60a5fa; /* blue-300 */
    }

.admin-tab-active {
    color: #2563eb; /* blue-600 */
    border-color: #2563eb; /* blue-600 */
}

.admin-heading {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #1d4ed8; /* blue-700 */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .admin-heading {
        font-size: 1.125rem; /* sm:text-lg */
    }
}

/* Force each tab to full width on small screens */
@media (max-width: 640px) {
    .admin-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-tab {
        width: 100%;
        justify-content: flex-start;
        border-left: 4px solid transparent;
        border-bottom: none;
    }

    .admin-tab-active {
        border-left-color: #2563eb; /* blue-600 */
        border-bottom: none;
    }
}


/* Table container */
.user-table {
    width: 100%;
    text-align: left;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb; /* Light border */
    border-radius: 0.75rem; /* rounded-xl */
    overflow: auto;
    border-collapse: collapse;
}

    /* Table headers */
    .user-table th {
        padding: 0.75rem 1rem; /* px-4 py-3 */
        background-color: #f9fafb; /* bg-gray-50 */
        font-size: 0.75rem; /* text-xs */
        font-weight: 600; /* font-semibold */
        color: #4b5563; /* text-gray-600 */
        text-transform: uppercase;
        border-bottom: 1px solid #e5e7eb; /* border line below headers */
    }

    /* Table row borders */
    .user-table td {
        padding: 0.75rem 1rem; /* px-4 py-3 */
        font-size: 0.875rem; /* text-sm */
        color: #1f2937; /* text-gray-800 */
        border-bottom: 1px solid #e5e7eb; /* bottom border for each row */
    }

    /* Optional: last row no border */
    .user-table tr:last-child td {
        border-bottom: none;
    }
/*   Role page css*/

/* Table appearance */
.table {
    width: 100%;
    text-align: left;
    background-color: white;
    border: 1px solid #e5e7eb; /* Light border around table */
    border-radius: 0.75rem; /* rounded corners */
    border-collapse: collapse;
    overflow: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    /* Header row styling */
    .table thead th {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: #4b5563;
        background-color: #f9fafb;
        text-transform: uppercase;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Table rows */
    .table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        color: #1f2937;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Remove border from last row */
    .table tbody tr:last-child td {
        border-bottom: none;
    }
/* Keep form fields consistent across themes */
input, textarea, select, label {
    background-color: #fff !important; /* always white */
    color: #000 !important; /* always normal black text */
}

/* Ensure placeholders stay readable */
::placeholder {
    color: #444 !important;
}

/* Checkbox consistency */
input[type="checkbox"] {
    accent-color: #378663; /* SoulSukh green */
    background-color: #fff !important;
    border: 1px solid #ccc;
}

/* Override dark mode */
@media (prefers-color-scheme: dark) {
    input, textarea, select, label {
        background-color: #fff !important;
        color: #000 !important;
    }

        input[type="checkbox"] {
            background-color: #fff !important;
        }
}
