/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    direction: ltr;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #42586f 0%, #547e9f 50%, #3a6fa4 100%);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(66, 88, 111, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    flex-direction: row;
    direction: ltr; /* Force LTR direction for header */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0; /* Remove gap between logo and sidebar icon */
    margin-right: auto; /* Push to left */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.6rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Position the sidebar toggle before the logo */
.logo {
    order: 2; /* Make logo appear second */
}

.sidebar-toggle {
    order: 1; /* Make sidebar toggle appear first */
    margin-right: 5px; /* Add a small margin between toggle and logo */
    margin-left: 0; /* Remove left margin */
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #28a745;
    transform: scale(1.1);
}

.logo img {
    height: 34px;
    width: 10%;
    max-width: 10%;
}

.balance {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    background-color: #f6fff5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    color: #000000;
    gap: 3px;
    height: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-direction: row-reverse; /* Move icon to left */
    text-align: center;
}

#userBalance {
    color: #000000;
    font-weight: 500;
    margin-right: 0;
    margin-left: 1px; /* Add space between number and icon */
    font-size: 1.20rem;
}

.profile-pic {
    position: relative;
    margin-left: 5px;
    margin-top: 3px;
}

.profile-pic img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-pic img:hover {
    border-color: #28a745;
    transform: scale(1.05);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.profile-pic::after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    background-color: #28a745;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Notice Bar */
.notice-container {
    width: calc(100% - 250px);
    position: fixed;
    top: 100px; /* Updated to match reduced header height */
    right: 0;
    padding: 0 1rem;
    z-index: 13;
    transition: width 0.3s ease, margin-left 0.3s ease;
}

.notice-container.expanded {
    width: calc(100% - 78px);
}

.notice-bar {
    background-color: #f4ebeb;
    padding: 1rem;
    width: 95%;
    max-width: 1200px;
    margin: 0.1rem auto 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-bar:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.notice-bar marquee {
    font-size: 0.9rem;
    color: #333;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    width: 100%;
}

.notice-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #fd9319;
    background-color: #ffecec;
    border-radius: 30%;
    width: 50px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: 120px;
    min-height: calc(100vh - 115px);
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #f3fff6;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
    position: fixed;
    left: 0;
    top: 70px; /* Updated to match reduced header height */
    bottom: 0;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    transform: translateX(0);
}

.sidebar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.sidebar.collapsed {
    width: 78px;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
    text-align: right;
    direction: rtl;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
    text-align: right;
    direction: rtl;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.69rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    justify-content: flex-end;
    direction: rtl;
}

.sidebar-nav a:hover {
    background-color: #f0f0f0;
}

.sidebar-nav a:hover i {
    color: #28a745;
}

.sidebar-nav li.active a {
    background-color: #e3f2fd;
    color: #1976d2;
}

.sidebar-nav li.active a i {
    color: #1976d2;
}

.sidebar-nav i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-right: 10px;
    order: 2;
}

.sidebar-nav span {
    text-align: right;
    margin-right: 10px;
    order: 1;
}

/* Ensure proper alignment when sidebar is collapsed */
.sidebar.collapsed .sidebar-nav a {
    padding: 0.8rem 0.5rem;
    justify-content: center;
    direction: ltr;
}

.sidebar.collapsed .sidebar-nav a:hover {
    background-color: #f0f0f0;
}

.sidebar.collapsed .sidebar-nav a:hover i {
    color: #28a745;
}

.sidebar.collapsed .sidebar-nav i {
    margin: 0;
    margin-right: 0;
    order: 1;
}

.sidebar.collapsed .sidebar-nav span {
    display: none;
}

/* Responsive adjustments for sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        top: 70px; /* Match mobile header height */
        left: 0;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 75px;
    }
    
    .notice-container {
        width: 100%;
        padding: 0 0.8rem;
        top: 80px; /* Adjusted for reduced header height */
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    margin-top: 25px;
}

.main-content.expanded {
    margin-left: 78px;
}

/* ===== COMPREHENSIVE HEADER RESPONSIVE DESIGN ===== */
/* Make header profile photo and balance fully responsive across all pages */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .header-right {
        gap: 2rem;
        padding: 1rem 1.5rem;
        height: 59px;
    }
    
    .balance {
        padding: 1rem 1.5rem;
        height: 38px;
        font-size: 1.3rem;
    }
    
    .profile-pic img {
        width: 62px;
        height: 62px;
    }
    
    .profile-pic::after {
        width: 16px;
        height: 16px;
        bottom: 3px;
        right: 3px;
    }
}

/* Medium screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-right {
        gap: 1.5rem;
        padding: 0.8rem 1.2rem;
        height: 75px;
    }
    
    .balance {
        padding: 0.8rem 1.6rem;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .profile-pic img {
        width: 80px;
        height: 80px;
    }
    
    .profile-pic::after {
        width: 15px;
        height: 15px;
        bottom: 3px;
        right: 3px;
    }
}

/* Small screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .header-right {
        gap: 1rem;
        padding: 0.6rem 1rem;
        height: 65px;
    }
    
    .balance {
        padding: 0.6rem 1rem;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .profile-pic img {
        width: 70px;
        height: 70px;
    }
    
    .profile-pic::after {
        width: 14px;
        height: 14px;
        bottom: 2px;
        right: 2px;
    }
}

/* Extra small screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .header-right {
        gap: 0.8rem;
        padding: 0.5rem 0.8rem;
        height: 55px;
    }
    
    .balance {
        padding: 0.5rem 0.8rem;
        height: 40px;
        font-size: 1rem;
        min-width: 80px;
    }
    
    .profile-pic img {
        width: 55px;
        height: 55px;
    }
    
    .profile-pic::after {
        width: 12px;
        height: 12px;
        bottom: 2px;
        right: 2px;
    }
}

/* Very small screens (below 576px) */
@media (max-width: 575px) {
    .header-right {
        gap: 0.5rem;
        padding: 0.4rem 0.6rem;
        height: 50px;
        flex-wrap: nowrap;
    }
    
    .balance {
        padding: 0.4rem 0.6rem;
        height: 35px;
        font-size: 0.9rem;
        min-width: 70px;
        flex-shrink: 1;
    }
    
    .balance span {
        font-size: 0.8rem;
    }
    
    .profile-pic {
        flex-shrink: 0;
    }
    
    .profile-pic img {
        width: 45px;
        height: 45px;
        border-width: 1px;
    }
    
    .profile-pic::after {
        width: 10px;
        height: 10px;
        bottom: 1px;
        right: 1px;
        border-width: 1px;
    }
}

/* Ultra small screens (below 400px) */
@media (max-width: 399px) {
    .header-right {
        gap: 0.3rem;
        padding: 0.3rem 0.4rem;
        height: 45px;
    }
    
    .balance {
        padding: 0.3rem 0.4rem;
        height: 30px;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .balance span {
        font-size: 0.7rem;
    }
    
    .profile-pic img {
        width: 40px;
        height: 40px;
    }
    
    .profile-pic::after {
        width: 8px;
        height: 8px;
        bottom: 1px;
        right: 1px;
    }
}

/* Ensure balance text doesn't break */
.balance {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make sure profile popup is responsive too */
@media (max-width: 575px) {
    .profile-popup {
        right: 0;
        left: auto;
        width: 280px;
        max-width: calc(100vw - 20px);
    }
    
    .popup-content {
        padding: 15px;
    }
    
    .popup-user-img {
        width: 60px;
        height: 60px;
    }
    
    .popup-name {
        font-size: 16px;
    }
    
    .popup-email {
        font-size: 14px;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .popup-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive adjustments for main content */
@media (max-width: 768px) {
    .main-container {
        margin-top: 120px;
    }
    
    .main-content {
        padding: 0.8rem;
    }
}

/* Responsive adjustments for cards */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1.2rem;
        border-top-width: 3px;
    }
    
    .card .number {
        font-size: 2rem;
    }
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.card {
    background-color: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: left;
    border-top: 4px solid #1976d2;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
    opacity: 0.8;
}

.card h3 {
    color: #333;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    position: relative;
    z-index: 1;
}

.card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1976d2;
    text-align: left;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: left;
}

.content-wrapper h1 {
    margin-bottom: 1.2rem;
    text-align: left;
    font-size: 2.2rem;
    color: #333;
    position: relative;
    display: inline-block;
    font-weight: 700;
    animation: fadeIn 0.6s ease-out forwards;
    direction: rtl;
}

.content-wrapper h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #eeeeee;
    border-radius: 2px;
}

.content-wrapper p {
    margin-bottom: 2rem;
    text-align: left;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

/* Animation for sidebar toggle */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Responsive adjustments for notice container */
@media (max-width: 768px) {
    .notice-container {
        width: 100%;
        padding: 0 0.8rem;
    }
    
    .notice-bar {
        margin-top: 0.3rem;
        padding: 0.8rem;
        max-width: 100%;
    }
    
    .notice-icon {
        width: 40px;
        height: 30px;
        font-size: 1.1rem;
        left: 10px;
    }
    
    .notice-bar marquee {
        padding: 0.4rem;
        font-size: 0.8rem;
        margin-right: 35px;
    }
}

/* Make sure we update the main-content margin-left & notice-container margin-left for collapsible state */
@media (min-width: 769px) {
    .main-content.expanded {
        margin-left: 78px;
    }
    
    .notice-container.expanded {
        width: calc(100% - 78px);
    }
}

/* Responsive adjustments for content wrapper */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .content-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .content-wrapper p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Card Variations */
.card-primary {
    border-top-color: #1976d2;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 50%, #1976d2 100%);
    color: white;
}

.card-success {
    border-top-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 50%, #28a745 100%);
    color: white;
}

.card-info {
    border-top-color: #17a2b8;
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 50%, #17a2b8 100%);
    color: white;
}

.card-primary .number {
    color: white;
}

.card-success .number {
    color: white;
}

.card-info .number {
    color: white;
}

.card-primary::before {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
}

.card-success::before {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
}

.card-info::before {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
}

.card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.15;
    z-index: 1;
}

.card-primary .card-icon {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-success .card-icon {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-info .card-icon {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-primary h3 {
    color: white;
}

.card-success h3 {
    color: white;
}

.card-info h3 {
    color: white;
}

.card:hover .card-icon {
    transform: scale(1.2);
    opacity: 0.2;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .card-icon {
        top: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
}

/* Welcome Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper h1 {
    animation: fadeIn 0.6s ease-out forwards;
}

.content-wrapper p {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.dashboard-cards {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.card-primary {
    animation: fadeIn 0.5s ease-out 0.6s forwards;
    opacity: 0;
}

.card-success {
    animation: fadeIn 0.5s ease-out 0.8s forwards;
    opacity: 0;
}

.card-info {
    animation: fadeIn 0.5s ease-out 1s forwards;
    opacity: 0;
}

/* Dashboard Sections */
.dashboard-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-top: 0.1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    position: relative;
    padding: 0.5rem 0;
    direction: ltr;
}

.dashboard-container:nth-of-type(2) {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-container:nth-child(3) {
    animation-delay: 0.6s;
}

.dashboard-container:nth-child(4) {
    animation-delay: 0.8s;
}

.dashboard-section.half-width {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
    margin-top: 0;
}

/* Adjust the width of activity section (left side) to be narrower */
.dashboard-section.half-width:first-child {
    flex: 1 1 calc(38% - 1rem);
}

/* Adjust the width of recharge history section (right side) to be wider for better table display */
.dashboard-section.half-width:last-child {
    flex: 1 1 calc(62% - 1rem);
}

.dashboard-section.full-width {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .dashboard-section.half-width,
    .dashboard-section.full-width {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .activity-item {
        padding: 0.8rem;
        flex-direction: row;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.8rem;
        margin-left: 0;
    }
    
    .activity-details h4 {
        font-size: 0.95rem;
    }
    
    .activity-meta {
        font-size: 0.8rem;
    }
}

.dashboard-section:nth-child(3) {
    animation-delay: 1.2s;
}

.dashboard-section:nth-child(4) {
    animation-delay: 1.4s;
}

.dashboard-section:nth-child(5) {
    animation-delay: 1.6s;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fcfcfc;
    flex-direction: row;
    direction: ltr;
}

.section-header h2 {
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
    margin: 0;
    position: relative;
    text-align: left;
}

.section-header h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #eeeeee;
    border-radius: 2px;
}

.section-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: left;
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: #1976d2;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

.section-content {
    padding: 1.5rem;
    text-align: left;
    direction: ltr;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    direction: ltr;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    flex-direction: row;
    justify-content: center;
    border-left: 3px solid transparent;
}

.activity-item:hover {
    background-color: #f3f8ff;
    transform: translateX(5px);
    border-left-color: #1976d2;
}

.activity-item:nth-child(1) {
    border-left-color: #1976d2;
}

.activity-item:nth-child(2) {
    border-left-color: #28a745;
}

.activity-item:nth-child(3) {
    border-left-color: #ffc107;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    margin-right: 1rem;
    margin-left: 0;
    flex-shrink: 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.activity-icon i {
    font-size: 1.2rem;
}

.activity-details {
    flex: 1;
    text-align: center;
}

.activity-details h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    color: #333;
    text-align: left;
    align-items: center;
    justify-content: center;
}

.activity-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.activity-status {
    margin-left: 1rem;
    margin-right: 0;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-status.success {
    color: #28a745;
}

.activity-status.pending {
    color: #ffc107;
}

.activity-status.failed {
    color: #dc3545;
}

/* History Table */
.history-table {
    width: 100%;
    overflow-x: auto;
    direction: ltr;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, 
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.history-table th {
    font-weight: 600;
    color: #555;
    background-color: #f9f9f9;
}

.history-table tr:nth-child(even) {
    background-color: #fafafa;
}

.history-table tr:hover {
    background-color: #f5f9ff;
}

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

.status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    gap: 5px;
    min-width: 80px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.status i {
    font-size: 0.9rem;
}

.status.success {
    background-color: #e8f5e9;
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status.pending {
    background-color: #fff8e1;
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status.failed, .status.reject {
    background-color: #ffebee;
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.status.reject {
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.15);
}

/* Responsive styles for dashboard sections */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .section-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .activity-item {
        padding: 0.8rem;
        flex-direction: row;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.8rem;
        margin-left: 0;
    }
    
    .activity-details {
        text-align: left;
    }
    
    .activity-details h4 {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .activity-meta {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .history-table th, 
    .history-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* For very small screens */
@media (max-width: 550px) {
    .history-table {
        overflow-x: scroll;
    }
    
    .history-table table {
        min-width: 550px;
    }
}

/* Override right-aligned table content */
table {
    text-align: center;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1976d2;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    transform: scale(0.9);
}

.scroll-to-top-btn:hover {
    background-color: #1565c0;
    transform: translateY(-5px) scale(1);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* Join Group Floating Button */
.join-group-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
    border-radius: 30px;
    padding: 12px 22px 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.join-group-btn i {
    font-size: 1.2rem;
    margin-right: 6px;
}
.join-group-btn:hover {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.25);
    transform: translateY(-2px) scale(1.04);
}

/* Coming Soon Page Styles */
.coming-soon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.coming-soon-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.coming-soon-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border-radius: 50%;
    color: white;
    font-size: 48px;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.coming-soon-actions {
    margin-top: 30px;
}

.btn-go-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-go-home:hover {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
    color: white;
    text-decoration: none;
}

.btn-go-home i {
    font-size: 1.1rem;
}

/* Responsive adjustments for coming soon page */
@media (max-width: 600px) {
    .coming-soon-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .coming-soon-title {
        font-size: 2rem;
    }
    
    .coming-soon-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .btn-go-home {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .join-group-btn {
        right: 10px;
        bottom: 10px;
        padding: 10px 16px 10px 14px;
        font-size: 0.95rem;
    }
    .join-group-btn i {
        font-size: 1rem;
        margin-right: 5px;
    }
}