/* Platform Premium Aesthetic */

/* Custom Seamless Row Design for Tables */
html[data-bs-theme="light"] .table-hover tbody tr {
    transition: all 0.25s ease;
}
html[data-bs-theme="light"] .table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.04) !important;
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

html[data-bs-theme="dark"] .table-hover tbody tr {
    transition: all 0.25s ease;
}
html[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Subtle Enter Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-fluid {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Branded gradients for Primary buttons globally in Platform */
html[data-bs-theme="light"] .btn-primary, 
html[data-bs-theme="light"] .btn-premium-action {
    background: linear-gradient(135deg, #1fa31f 0%, #178317 100%);
    border: none;
    color: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
html[data-bs-theme="light"] .btn-primary:hover,
html[data-bs-theme="light"] .btn-premium-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 163, 31, 0.3);
}

html[data-bs-theme="dark"] .btn-primary,
html[data-bs-theme="dark"] .btn-premium-action {
    background: linear-gradient(135deg, #39ff14 0%, #29e00b 100%);
    border: none;
    color: #000 !important;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
html[data-bs-theme="dark"] .btn-primary:hover,
html[data-bs-theme="dark"] .btn-premium-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 255, 20, 0.4);
}

/* Enhancing standard cards inside the container to match glassmorphism optionally */
html[data-bs-theme="dark"] .shadow-custom {
    background: rgba(30, 31, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}
html[data-bs-theme="light"] .shadow-custom {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
}

/* The dropdown actions */
html[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(30, 31, 35, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-bs-theme="dark"] .dropdown-item {
    color: #e5e7eb;
}
html[data-bs-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Premium Dashboard UI Elements */
.dashboard-hero {
    background: var(--theme-bg-surface, #ffffff);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 2rem;
}

html[data-bs-theme="dark"] .dashboard-hero {
    background: #1e1e24;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #39ff14, #29e00b);
}

.hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(57, 255, 20, 0.1);
    color: #1fa31f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}
html[data-bs-theme="dark"] .hero-icon {
    color: #39ff14;
}

.hero-title {
    font-weight: 800;
    font-size: 2rem;
    color: #212529;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

html[data-bs-theme="dark"] .hero-title {
    color: #ffffff;
}

.hero-subtitle {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

html[data-bs-theme="dark"] .hero-subtitle {
    color: #adb5bd;
}

.card-premium {
    background: var(--theme-bg-surface, #ffffff);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-bs-theme="dark"] .card-premium {
    background: #1e1e24;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.table-premium {
    margin: 0;
    width: 100%;
}

.table-premium thead th {
    background: rgba(0,0,0,0.02);
    color: #6c757d;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-top: none;
}

html[data-bs-theme="dark"] .table-premium thead th {
    background: rgba(0,0,0,0.2);
    color: #adb5bd;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-premium tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    color: var(--bs-heading-color, #212529);
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.02);
    background: transparent;
}

html[data-bs-theme="dark"] .table-premium tbody td {
    color: #e9ecef;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-premium tbody tr:last-child td {
    border-bottom: none;
}

.table-premium tbody tr:hover td {
    background: rgba(57, 255, 20, 0.03);
}

.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(57, 255, 20, 0.1);
    color: #1fa31f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
html[data-bs-theme="dark"] .source-badge {
    color: #39ff14;
}

.empty-state {
    padding: 5rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: rgba(57, 255, 20, 0.2);
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(57, 255, 20, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1fa31f;
    font-weight: 800;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}
html[data-bs-theme="dark"] .avatar-placeholder {
    color: #39ff14;
}
