/**
 * Doktorclub Admin Portal - Component Styles
 * Custom CSS components for use with Tailwind CDN
 */

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 265px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    z-index: 50;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 75px;
}

.sidebar-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3699FF;
}

.sidebar-logo-mini {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3699FF;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.5rem;
    height: calc(100vh - 50px);
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    color: #6b7280;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-menu-section {
    margin-bottom: 0.25rem;
}

.sidebar-menu-item:hover {
    color: #3699FF;
    background-color: #f3f4f6;
}

.sidebar-menu-item.active {
    color: #ffffff;
    background-color: #3699FF;
}

.sidebar-menu-item-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.sidebar-menu-item-text {
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-menu-item-text {
    display: none;
}

.sidebar-menu-title {
    padding: 0.375rem 0.75rem 0.125rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar.collapsed .sidebar-menu-title {
    display: none;
}

.sidebar-menu-item-badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #F1416C;
    color: #ffffff;
    border-radius: 9999px;
}

/* Sidebar collapse button */
.sidebar-collapse-btn {
    padding: 0.375rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.sidebar-collapse-btn:hover {
    color: #3699FF;
    background-color: #f3f4f6;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-left: 265px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 75px;
}

.content-wrapper {
    flex: 1;
    padding: 1.5rem 2rem;
}

/* Mobile responsive sidebar & content */
@media (max-width: 1023px) {
    .sidebar {
        z-index: 50;
    }
    .main-content,
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }
    .content-wrapper {
        padding: 1rem;
    }
}

/* Sidebar mobile backdrop */
.sidebar-backdrop {
    display: none;
}
@media (max-width: 1023px) {
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 50px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    color: #6b7280;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.header-btn-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1rem;
    text-align: center;
    color: #ffffff;
    background-color: #F1416C;
    border-radius: 9999px;
}

.header-user {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e5e7eb;
}

.header-user button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.header-user button:hover {
    background-color: #f3f4f6;
}

.header-user-info {
    display: none;
}

@media (min-width: 1024px) {
    .header-user-info {
        display: block;
        margin-left: 0.75rem;
    }
}

.header-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.header-user-role {
    font-size: 0.75rem;
    color: #6b7280;
}

.header-search {
    position: relative;
}

.header-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}

.header-search-input {
    width: 240px;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    color: #374151;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.header-search-input:focus {
    outline: none;
    width: 320px;
    background-color: #ffffff;
    border-color: #3699FF;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.1);
}

.header-search-input::placeholder {
    color: #9ca3af;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0px 0px 30px 0px rgba(76, 87, 125, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background-color: rgba(249, 250, 251, 0.5);
    border-radius: 0 0 0.75rem 0.75rem;
}

/* ========================================
   STAT CARDS
   ======================================== */
.stat-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
}

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-card-icon.primary {
    background-color: #E1F0FF;
    color: #3699FF;
}

.stat-card-icon.success {
    background-color: #E8FFF3;
    color: #50CD89;
}

.stat-card-icon.warning {
    background-color: #FFF8DD;
    color: #FFC700;
}

.stat-card-icon.danger {
    background-color: #FFF5F8;
    color: #F1416C;
}

.stat-card-icon.info {
    background-color: #F8F5FF;
    color: #7239EA;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.3);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3699FF;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #187DE4;
}

.btn-success {
    background-color: #50CD89;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #47BE7D;
}

.btn-warning {
    background-color: #FFC700;
    color: #1f2937;
}

.btn-warning:hover {
    background-color: #F1BC00;
}

.btn-danger {
    background-color: #F1416C;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #D9214E;
}

.btn-light {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-light:hover {
    background-color: #e5e7eb;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3699FF;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.2);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-select {
    width: 100%;
    padding: 0.625rem 2.25rem 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.form-select:focus {
    outline: none;
    border-color: #3699FF;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.2);
}

/* ========================================
   TABLES
   ======================================== */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    font-size: 0.875rem;
    text-align: left;
}

.table thead {
    background-color: #f9fafb;
}

.table th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 1rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.table tbody tr:hover {
    background-color: rgba(249, 250, 251, 0.5);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.badge-primary {
    background-color: #E1F0FF;
    color: #3699FF;
}

.badge-success {
    background-color: #E8FFF3;
    color: #50CD89;
}

.badge-warning {
    background-color: #FFF8DD;
    color: #946800;
}

.badge-danger {
    background-color: #FFF5F8;
    color: #F1416C;
}

.badge-info {
    background-color: #F8F5FF;
    color: #7239EA;
}

.badge-dark {
    background-color: #e5e7eb;
    color: #374151;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}

.alert-message {
    font-size: 0.875rem;
}

.alert-success {
    background-color: #E8FFF3;
    color: #065f46;
}

.alert-danger {
    background-color: #FFF5F8;
    color: #991b1b;
}

.alert-warning {
    background-color: #FFF8DD;
    color: #92400e;
}

.alert-info {
    background-color: #F8F5FF;
    color: #5b21b6;
}

/* ========================================
   DROPDOWNS
   ======================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    min-width: 12rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    padding: 0.25rem 0;
    z-index: 100;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.15s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f9fafb;
}

.dropdown-item.text-danger {
    color: #F1416C;
}

.dropdown-item.text-danger:hover {
    background-color: #FFF5F8;
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-top: 1px solid #f3f4f6;
}

/* ========================================
   AVATARS
   ======================================== */
.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    overflow: hidden;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.avatar-md {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
}

.avatar-lg {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: #6b7280;
}

.breadcrumb-item:hover {
    color: #3699FF;
}

.breadcrumb-item.active {
    color: #374151;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #9ca3af;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    margin-bottom: 0.75rem;
}

.page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.page-description {
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 0.125rem;
}

/* ========================================
   UTILITIES
   ======================================== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Text colors */
.text-primary {
    color: #3699FF;
}

.text-success {
    color: #50CD89;
}

.text-warning {
    color: #FFC700;
}

.text-danger {
    color: #F1416C;
}

.text-info {
    color: #7239EA;
}

/* Background light colors for avatars */
.bg-primary-light {
    background-color: #E1F0FF;
}

.bg-success-light {
    background-color: #E8FFF3;
}

.bg-warning-light {
    background-color: #FFF8DD;
}

.bg-danger-light {
    background-color: #FFF5F8;
}

.bg-info-light {
    background-color: #F8F5FF;
}

/* ========================================
   DARK MODE
   ======================================== */

/* Sidebar Dark Mode */
.dark .sidebar {
    background-color: #1e1e2d;
    border-right-color: rgba(255, 255, 255, 0.05);
}

.dark .sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark .sidebar-logo,
.dark .sidebar-logo-mini {
    color: #ffffff;
}

.dark .sidebar-menu-item {
    color: #9da5b4;
}

.dark .sidebar-menu-item:hover {
    color: #ffffff;
    background-color: #2a2a3c;
}

.dark .sidebar-menu-item.active {
    color: #ffffff;
    background-color: #3699FF;
}

.dark .sidebar-menu-title {
    color: #6b7280;
}

.dark .sidebar-collapse-btn {
    color: #9da5b4;
}

.dark .sidebar-collapse-btn:hover {
    color: #ffffff;
    background-color: #2a2a3c;
}

/* Header Dark Mode */
.dark .header {
    background-color: #1f2937;
    border-bottom-color: #374151;
}

.dark .header-btn {
    color: #9ca3af;
}

.dark .header-btn:hover {
    background-color: #374151;
    color: #f3f4f6;
}

.dark .header-search-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.dark .header-search-input:focus {
    background-color: #1f2937;
    border-color: #3699FF;
}

.dark .header-search-input::placeholder {
    color: #6b7280;
}

.dark .header-user {
    border-left-color: #374151;
}

.dark .header-user button:hover {
    background-color: #374151;
}

.dark .header-user-name {
    color: #f3f4f6;
}

.dark .header-user-role {
    color: #9ca3af;
}

.dark .breadcrumb-item {
    color: #9ca3af;
}

.dark .breadcrumb-item:hover {
    color: #3699FF;
}

.dark .breadcrumb-item.active {
    color: #f3f4f6;
}

.dark .breadcrumb-separator {
    color: #6b7280;
}

/* Cards Dark Mode */
.dark .card {
    background-color: #1f2937;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
}

.dark .card:hover {
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.4);
}

.dark .card-header {
    border-bottom-color: #374151;
}

.dark .card-title {
    color: #f3f4f6;
}

.dark .card-subtitle {
    color: #9ca3af;
}

.dark .card-footer {
    border-top-color: #374151;
    background-color: rgba(31, 41, 55, 0.5);
}

/* Stat Cards Dark Mode */
.dark .stat-card {
    background-color: #1f2937;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
}

.dark .stat-card-icon.primary {
    background-color: rgba(54, 153, 255, 0.2);
}

.dark .stat-card-icon.success {
    background-color: rgba(80, 205, 137, 0.2);
}

.dark .stat-card-icon.warning {
    background-color: rgba(255, 199, 0, 0.2);
}

.dark .stat-card-icon.danger {
    background-color: rgba(241, 65, 108, 0.2);
}

.dark .stat-card-icon.info {
    background-color: rgba(114, 57, 234, 0.2);
}

.dark .stat-card-value {
    color: #f3f4f6;
}

.dark .stat-card-label {
    color: #9ca3af;
}

/* Tables Dark Mode */
.dark .table thead {
    background-color: #111827;
}

.dark .table th {
    color: #9ca3af;
}

.dark .table td {
    color: #d1d5db;
    border-bottom-color: #374151;
}

.dark .table tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

/* Forms Dark Mode */
.dark .form-label {
    color: #d1d5db;
}

.dark .form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.dark .form-control:focus {
    border-color: #3699FF;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.3);
}

.dark .form-control::placeholder {
    color: #6b7280;
}

.dark .form-select {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.dark .form-select:focus {
    border-color: #3699FF;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.3);
}

/* Buttons Dark Mode */
.dark .btn-light {
    background-color: #374151;
    color: #d1d5db;
}

.dark .btn-light:hover {
    background-color: #4b5563;
}

/* Dropdowns Dark Mode */
.dark .dropdown-menu {
    background-color: #1f2937;
    border-color: #374151;
}

.dark .dropdown-menu .border-b,
.dark .dropdown-menu .border-t {
    border-color: #374151 !important;
}

.dark .dropdown-item {
    color: #d1d5db;
}

.dark .dropdown-item:hover {
    background-color: #374151;
}

/* Page Header Dark Mode */
.dark .page-title {
    color: #f3f4f6;
}

.dark .page-description {
    color: #9ca3af;
}

/* Badges Dark Mode */
.dark .badge-primary {
    background-color: rgba(54, 153, 255, 0.2);
}

.dark .badge-success {
    background-color: rgba(80, 205, 137, 0.2);
}

.dark .badge-warning {
    background-color: rgba(255, 199, 0, 0.2);
    color: #FFC700;
}

.dark .badge-danger {
    background-color: rgba(241, 65, 108, 0.2);
}

.dark .badge-info {
    background-color: rgba(114, 57, 234, 0.2);
}

.dark .badge-dark {
    background-color: #4b5563;
    color: #d1d5db;
}

/* Alerts Dark Mode */
.dark .alert-success {
    background-color: rgba(80, 205, 137, 0.15);
    color: #50CD89;
}

.dark .alert-danger {
    background-color: rgba(241, 65, 108, 0.15);
    color: #F1416C;
}

.dark .alert-warning {
    background-color: rgba(255, 199, 0, 0.15);
    color: #FFC700;
}

.dark .alert-info {
    background-color: rgba(114, 57, 234, 0.15);
    color: #7239EA;
}

/* Background light colors Dark Mode */
.dark .bg-primary-light {
    background-color: rgba(54, 153, 255, 0.2);
}

.dark .bg-success-light {
    background-color: rgba(80, 205, 137, 0.2);
}

.dark .bg-warning-light {
    background-color: rgba(255, 199, 0, 0.2);
}

.dark .bg-danger-light {
    background-color: rgba(241, 65, 108, 0.2);
}

.dark .bg-info-light {
    background-color: rgba(114, 57, 234, 0.2);
}

/* Scrollbar Dark Mode */
.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Quick Actions Grid (admin-home) Dark Mode */
.dark .bg-gray-50 {
    background-color: #374151 !important;
}

.dark .bg-gray-50:hover {
    background-color: #4b5563 !important;
}

.dark .hover\:bg-gray-200:hover {
    background-color: #4b5563 !important;
}

/* User dropdown menu Dark Mode */
.dark .absolute.bg-white {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

.dark .absolute.bg-white .border-b,
.dark .absolute.bg-white .border-t {
    border-color: #374151 !important;
}

.dark .absolute.bg-white .text-gray-900 {
    color: #f3f4f6 !important;
}

.dark .absolute.bg-white .text-gray-700 {
    color: #d1d5db !important;
}

.dark .absolute.bg-white .text-gray-500 {
    color: #9ca3af !important;
}

.dark .absolute.bg-white a:hover {
    background-color: #374151 !important;
}
