/* Global Responsive Fixes */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Force container to be responsive */
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel responsive fixes */
#dashboardCarousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    overflow: hidden;
}

.professional-slide-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Image responsive fixes */
.slide-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* News ticker responsive fixes */
.news-ticker-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.news-ticker {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Card responsive fixes */
.card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Button responsive fixes */
.btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Table responsive fixes */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Modal responsive fixes */
.modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
    width: auto;
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
}

/* Main wrapper fixes */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#page-content-wrapper {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar responsive */
#sidebar-wrapper {
    min-height: 100vh;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 250px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

#sidebar-wrapper.show {
    transform: translateX(0);
}

/* Sidebar heading styles */
.sidebar-heading {
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar menu items */
#sidebar-wrapper .list-group {
    background: transparent;
}

#sidebar-wrapper .list-group-item {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent !important;
    display: flex;
    align-items: center;
}

#sidebar-wrapper .list-group-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
}

#sidebar-wrapper .list-group-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

#sidebar-wrapper .list-group-item i {
    width: 20px;
    text-align: center;
}

/* Overlay for mobile when sidebar is open */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1025;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Desktop sidebar behavior */
@media (min-width: 769px) {
    #sidebar-wrapper {
        transform: translateX(0);
        position: fixed;
        z-index: 1030;
    }

    #wrapper {
        padding-left: 250px;
    }

    /* On desktop, push main content to the right of the 250px sidebar */
    #page-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar {
        padding-left: 250px;
    }
}

/* Mobile sidebar behavior */
@media (max-width: 768px) {
    #sidebar-wrapper {
        z-index: 1030;
    }

    #page-content-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper main.container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Wallet view mobile fixes */
    #wallet-view .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Ensure balance cards fit on mobile */
    #wallet-view .row.g-3.mb-4 .col-md-6 {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        display: none;
    }

    .news-ticker .ticker-content .ticker-item:first-child {
        padding-left: 100%;
    }

    .news-ticker .ticker-content .ticker-item:last-child {
        padding-right: 100%;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* Navbar responsive fixes */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 60px;
}

/* Add padding to main content to account for fixed navbar */
#page-content-wrapper main {
    padding-top: 80px !important;
    margin-top: 0 !important;
}

#page-content-wrapper main.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Wallet view specific layout fixes */
#wallet-view {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure balance cards don't get cut off */
#wallet-view .row.g-3.mb-4 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* Fix container-fluid within wallet-view */
#wallet-view .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Ensure Recent Transactions stays within dashboard view and doesn't float */
#dashboardRecentTransactions {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Force hide Recent Transactions when it has display:none */
#dashboardRecentTransactions[style*="display: none"],
#dashboardRecentTransactions[style*="display:none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure dashboard view is properly contained */
#dashboard-overview-view {
    position: relative !important;
    width: 100% !important;
}

/* Prevent any child elements from escaping their parent */
.content-view>* {
    position: relative !important;
}

/* Content view fixes */
.content-view {
    width: 100%;
    min-height: 100vh;
}

/* Row and column fixes */
.row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Bootstrap grid responsive fixes */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    main {
        padding: 0.5rem;
        margin-top: 56px;
    }

    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 767.98px) {
    main {
        padding: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    main {
        padding: 0.5rem;
        margin-top: 56px;
    }

    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Ultra small devices */
@media (max-width: 360px) {
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }

    main {
        padding: 0.25rem;
        margin-top: 56px;
    }

    [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Notification Bell Styles */
.notification-bell-container .btn-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.notification-bell-container .btn-link:hover i {
    color: #3b82f6 !important;
    transform: scale(1.1) rotate(15deg);
}

.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.notification-dropdown {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item {
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f9fafb !important;
}

/* Modern News Ticker Styles */
.news-ticker-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.news-ticker-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    z-index: 2;
}

.news-ticker {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 12px 20px;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 80px;
    white-space: nowrap;
    transform: translateX(0);
    animation: ticker 90s linear infinite;
    animation-delay: 0s;
    animation-fill-mode: both;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ticker-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ticker-item:hover {
    opacity: 1;
}

.ticker-item i {
    font-size: 1rem;
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Enhanced ticker effects */
.news-ticker::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Responsive ticker */
@media (max-width: 768px) {
    .news-ticker {
        padding: 10px 15px;
        height: 45px;
    }

    .ticker-content {
        font-size: 0.8rem;
        gap: 60px;
        transform: translateX(0);
        animation: ticker 75s linear infinite;
        animation-delay: 0s;
    }

    .ticker-item i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        padding: 8px 12px;
        height: 40px;
    }

    .ticker-content {
        font-size: 0.75rem;
        gap: 45px;
        transform: translateX(0);
        animation: ticker 60s linear infinite;
        animation-delay: 0s;
    }

    .ticker-item i {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .news-ticker {
        padding: 6px 10px;
        height: 38px;
    }

    .ticker-content {
        font-size: 0.7rem;
        gap: 35px;
        transform: translateX(0);
        animation: ticker 80s linear infinite;
        animation-delay: 0s;
    }

    .ticker-item i {
        font-size: 0.75rem;
    }
}

#dashboardCarousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

/* Professional Slide Cards */
.professional-slide-card {
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.slide-background {
    position: relative;
    height: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.slide-content {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 2;
}

.slide-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slide-features {
    margin-bottom: 0.6rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.slide-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.slide-btn-primary {
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
}

.slide-btn-secondary {
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    border-radius: 15px;
    border: 1px solid;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 0.7rem;
}

.slide-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.professional-slide-card:hover .slide-image img {
    transform: scale(1.02);
}

.floating-elements {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 3;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Professional Indicators */
/* Carousel indicators - tiny dashes */
.professional-indicator {
    width: 20px !important;
    height: 2px !important;
    border-radius: 1px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: none;
    margin: 0 3px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.professional-indicator::before {
    display: none !important;
}

.professional-indicator:hover::before {
    display: none !important;
}

.professional-indicator.active {
    width: 28px !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.indicator-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Professional Navigation Controls */
.professional-control {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.professional-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.control-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 1.25rem;
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

/* Enhanced Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .slide-content {
        padding: 0.8rem;
        text-align: center;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slide-description {
        font-size: 0.85rem;
    }

    .slide-actions {
        justify-content: center;
    }

    .floating-elements {
        position: static;
        transform: none;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .floating-card {
        animation: none;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 767.98px) {
    #dashboardCarousel {
        border-radius: 8px;
        margin-bottom: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    #dashboardCarousel .carousel-inner {
        border-radius: 8px;
    }

    .professional-slide-card {
        min-height: 180px;
    }

    .slide-background {
        min-height: 180px;
    }

    .slide-content {
        padding: 0.6rem;
    }

    .slide-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .slide-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .slide-features {
        margin-bottom: 0.5rem;
    }

    .feature-item {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    .slide-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .slide-btn-primary,
    .slide-btn-secondary {
        width: 100%;
        max-width: 160px;
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
    }

    .slide-image {
        min-height: 180px;
    }

    .slide-image img {
        object-fit: cover;
    }

    .professional-control {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev {
        left: -17px;
    }

    .carousel-control-next {
        right: -17px;
    }

    .professional-indicator {
        padding: 0.3rem 0.6rem;
        margin: 0 0.15rem;
    }

    .indicator-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .professional-slide-card {
        min-height: 150px;
    }

    .slide-background {
        min-height: 150px;
    }

    .slide-image {
        min-height: 150px;
    }

    .slide-image img {
        object-fit: cover;
    }

    .slide-content {
        padding: 0.5rem;
    }

    .slide-title {
        font-size: 0.9rem;
    }

    .slide-description {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .slide-features {
        margin-bottom: 0.4rem;
    }

    .feature-item {
        font-size: 0.6rem;
    }

    .floating-elements {
        margin-top: 0.8rem;
        gap: 0.4rem;
    }

    .floating-card {
        font-size: 0.65rem;
        padding: 0.3rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .professional-slide-card {
        min-height: 130px;
    }

    .slide-background {
        min-height: 130px;
    }

    .slide-image {
        min-height: 130px;
    }

    .slide-image img {
        object-fit: cover;
    }

    .slide-content {
        padding: 0.4rem;
    }

    .slide-title {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .slide-description {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }

    .slide-features {
        margin-bottom: 0.3rem;
    }

    .feature-item {
        font-size: 0.55rem;
        margin-bottom: 0.1rem;
    }

    .slide-btn-primary,
    .slide-btn-secondary {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
        max-width: 120px;
    }

    .floating-elements {
        margin-top: 0.6rem;
        gap: 0.3rem;
    }

    .floating-card {
        font-size: 0.6rem;
        padding: 0.25rem 0.35rem;
    }
}

/* Purple button styles */
.btn-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    color: white;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Animation for carousel items */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item {
    animation: slideInUp 0.8s ease-out;
}

/* Loading animation for images */
.slide-image img {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Enhanced shadows and depth */
.professional-slide-card {
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.1);
}

/* Text shadows for better readability */
.slide-title,
.slide-description,
.slide-badge,
.indicator-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Professional hover effects */
.professional-indicator:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.professional-indicator.active:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Prevent horizontal overflow */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Ensure proper spacing for controls */
.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

/* Mobile control positioning */
@media (max-width: 767.98px) {
    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 575.98px) {
    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }
}

/* Ensure ticker doesn't overflow */
.ticker-content {
    max-width: 100%;
}

/* Fix for any potential z-index issues */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Ensure proper text wrapping */
.slide-title,
.slide-description,
.card-title {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Final responsive safety */
@media (max-width: 320px) {
    .container-fluid {
        padding-left: 3px;
        padding-right: 3px;
    }

    main {
        padding: 0.25rem;
    }

    [class*="col-"] {
        padding-left: 3px;
        padding-right: 3px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Transaction Icon Styles */
[class*="transaction-icon-"] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.transaction-icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.transaction-icon-primary {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.transaction-icon-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.transaction-icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.transaction-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.transaction-icon-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.transaction-icon-dark {
    background: rgba(31, 41, 55, 0.1);
    color: #1f2937;
}

.transaction-icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Purple text color */
.text-purple {
    color: #8b5cf6 !important;
}

.bg-purple {
    background-color: #8b5cf6 !important;
}

/* Transaction hover effects */
.table tbody tr:hover [class*="transaction-icon-"] {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* ============================================
   Mobile Notification Dropdown Fix
   ============================================ */
@media (max-width: 768px) {

    /* Force dropdown to be centered and full-width on mobile */
    #notificationDropdown,
    .notification-dropdown {
        position: fixed !important;
        top: 70px !important;
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        max-width: 90% !important;
        min-width: 90% !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
        z-index: 99999 !important;
        transform: none !important;
        margin: 0 auto !important;
        background: white !important;
    }

    /* Ensure parent container doesn't clip */
    .notification-bell-container {
        position: static !important;
    }

    .notification-item {
        padding: 14px 16px !important;
    }

    .notification-item h6,
    .notification-item h4 {
        font-size: 0.95rem !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .notification-item p,
    .notification-item small {
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .notification-item .text-truncate {
        text-overflow: unset !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    /* Notification list scroll */
    .notification-list {
        max-height: calc(65vh - 100px) !important;
        overflow-y: auto !important;
    }
}