/* Tablet and smaller desktop */
@media screen and (max-width: 1023px) {
    .sec {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 100% !important; /* Force full width on mobile */
      margin-left: 0 !important; /* Remove left margin on mobile */
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      padding: 0;
    }
    
  
    /* Ensure the top navigation stays visible */
    .dashboard-top {
      position: sticky;
      top: 0;
      background: white;
      z-index: 998;
    }
  
    .dashboard-top .date {
      display: none; /* Hide date on mobile to save space */
    }
  
    .dashboard-top .user {
      scale: 0.9;  /* Slightly reduce size */
    }
  
    .dashboard-top .user .user-details {
      max-width: 80px;  /* Limit width */
      overflow: hidden;
      text-overflow: ellipsis;
    }
  
  
    /* Page navigation links responsive */
    .page-navigation-links ul {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
  
    .page-navigation-links ul li {
      scale: 0.9;
    }
  
    .page-navigation-links ul li a {
      padding: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .page-navigation-links ul li a i {
      margin: 0;
      font-size: 1.2em;
      color: inherit; /* This ensures icon color matches parent */
    }
  
    /* Hide text, keep icon */
    .page-navigation-links ul li a span:not(.icon) {
      display: none;
    }
  
    /* User section - show only icons */
    .dashboard-top .user .user-details,
    .dashboard-top .switch-user-view-one .user-details,
    .dashboard-top .switch-user-view-two .user-details {
      display: none;
    }
  
    .dashboard-top .user .carret {
      display: none;
    }
  
    /* Adjust icon containers */
    .dashboard-top .user .icon,
    .dashboard-top .switch-user-view-one .icon,
    .dashboard-top .switch-user-view-two .icon {
      margin: 0;
      width: 35px;
      height: 35px;
    }
  
    /* Add tooltips for hover on icons */
    .page-navigation-links ul li {
      position: relative;
    }
  
    .page-navigation-links ul li:hover::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: -25px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.8);
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 0.8em;
      white-space: nowrap;
      z-index: 1000;
    }
  
    /* Container width adjustment */
    .dashboard-top > div {
      width: 100% !important;  /* Override inline style */
      margin: 0 !important;    /* Override inline style */
      padding: 0 5px;
    }
  }
  
  /* Even smaller screens */
  @media screen and (max-width: 768px) {
    .dashboard-top .user .icon,
    .dashboard-top .switch-user-view-one .icon,
    .dashboard-top .switch-user-view-two .icon,
    .dashboard-top .switch-user-view-thr .icon {
      width: 30px;
      height: 30px;
    }
  
    .dashboard-top .user-details {
      font-size: 0.75em;
    }
  
    .page-navigation-links ul li a {
      font-size: 0.8em;
      padding: 4px 8px;
    }
  }
  
  /* Desktop styles */
  @media screen and (min-width: 1024px) {
    .dashboard-main {
      display: flex;
      flex-direction: row;
    }
  
    .sec {
      position: relative;
      margin-left: var(--sidebar-width);
      width: calc(100%);
      overflow-y: visible;
      box-shadow: -1px 0 3px rgba(0, 0, 0, 0.05);
    }
  
  
    .menu-toggle {
      display: none;
    }
  
    .mobile-overlay {
      display: none !important;
    }
  }

  .sec .dashboard-top {
    width: 100%;
    background-color: var(--primary-color);
    padding: 5px 0;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid rgb(228, 228, 228);
}

.sec .dashboard-top .date p {
    margin: 0;
}

.sec .dashboard-top .user {
    min-width: 120px;
    position: relative;
    background-color: #e2e2e2;
    padding: 5px;
    border-radius: 7px;
    cursor: pointer;
    overflow: visible;
    transition: background-color 0.3s ease-in-out;
}

.sec .dashboard-top .user:hover {
    background-color: #d4d4d4;
}

.sec .dashboard-top .user:hover>.links {
    opacity: 1;
    transform: scale(1);
}

.sec .dashboard-top .user:hover>.carret {
    transform: rotate(180deg) translateY(5px);
}

/* User details */
.sec .dashboard-top .user .user-details p {
    margin: 0;
}

.sec .dashboard-top .user .user-details .bold {
    font-size: 0.7rem;
    margin-top: -3px;
}

/* Carret */
.sec .dashboard-top .user .carret {
    margin: 0 5px 0 10px;
    /* transform-origin: center center; */
    transition: 0.3s;
}

/* Links */
.sec .dashboard-top .user .links {
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    /* height: 200px; */
    border-radius: 7px;
    padding: 10px 0;
    background-color: var(--mid-color-1);
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
    transform-origin: top right;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.sec .dashboard-top .user .links a {
    padding: 10px;
    border-bottom: 1px solid #dddddd;
}

.sec .dashboard-top .user .links a:hover {
    background-color: var(--dull-blue);
    color: var(--secondary-color);
}

.sec .dashboard-top .user .links a:hover>p {
    color: var(--secondary-color);
}

.sec .dashboard-top .user .links a p {
    margin: 0;
}

.sec .dashboard-top .user .links a p i {
    display: inline-block;
    margin-right: 5px;
    transform: translateY(2px);
}

/* User icon */
.sec .dashboard-top .user .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--mid-color-1);
    position: relative;
    transition: 0.3s;
}

.sec .dashboard-top .user .icon:hover {
    background-color: var(--pure-blue);
}

.sec .dashboard-top .user .icon i {
    display: inline-block;
    transform: translateY(2px);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section img {
    max-height: 35px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    color: white;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.dynamic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animate-text {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.animate-text-delay {
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-cta {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.primary-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.pulse {
    animation: pulse 2s infinite;
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.animated-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: #007bff;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

/* Demo Section */
.demo-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: #007bff;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 2rem;
    background: white;
}

.testimonials-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
}

.avatar-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.generated-avatar {
    width: 100%;
    height: 100%;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-btn,
.next-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    color: #007bff;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #007bff 0%, #00bfff 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background: white;
    color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .animate-text {
        font-size: 2.5rem;
    }

    .animate-text-delay {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .demo-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* Theme Toggle */
.theme-toggle {
    margin: 0 1rem;
}

.theme-switch {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.theme-switch:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.theme-switch i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-switch .dark-icon {
    display: none;
}

/* Dark mode styles */
[data-theme="dark"] {
    --primary-color: #1a1a1a;
    --secondary-color: #007bff;
    --text-color: #ffffff;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #2d2d2d;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .dashboard-top {
    background-color: var(--primary-color);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .theme-switch .light-icon {
    display: none;
}

[data-theme="dark"] .theme-switch .dark-icon {
    display: block;
    color: #fff;
}

[data-theme="dark"] .feature-card {
    background-color: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .animated-icon {
    background: var(--secondary-color);
}

[data-theme="dark"] .demo-section {
    background-color: var(--bg-color);
}

[data-theme="dark"] .tab-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .tab-btn {
    color: var(--text-color);
}

[data-theme="dark"] .testimonials-section {
    background-color: var(--bg-color);
}

[data-theme="dark"] .testimonial-card {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #004a99 0%, #0077cc 100%);
}

[data-theme="dark"] .section-title {
    color: var(--text-color);
}

[data-theme="dark"] .admin-btn button {
    background-color: var(--secondary-color);
}

[data-theme="dark"] .date p {
    color: var(--text-color);
}

[data-theme="dark"] .features-section {
    background-color: var(--bg-color);
}

/* Footer Section */
.footer-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-height: 40px;
    width: auto;
}

.company-description {
    color: #666;
    line-height: 1.6;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links ul li {
    margin-bottom: 0.8rem;
}

.quick-links ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links ul li a:hover {
    color: var(--secondary-color);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #666;
}

.contact-info ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Dark mode styles for footer */
[data-theme="dark"] .footer-section {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-column h3 {
    color: var(--text-color);
}

[data-theme="dark"] .company-description,
[data-theme="dark"] .quick-links ul li a,
[data-theme="dark"] .contact-info ul li,
[data-theme="dark"] .footer-bottom {
    color: #999;
}

[data-theme="dark"] .social-icon {
    background-color: var(--primary-color);
    color: #999;
}

[data-theme="dark"] .social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .animate-text {
        font-size: 2.5rem;
    }

    .animate-text-delay {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .demo-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* Dashboard Styles */
.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-card h4 {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.recent-activity {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-list {
    min-height: 80px; /* Ensure consistent height during transitions */
    position: relative;
    overflow: hidden;
}

.activity-item {
    padding: 1rem;
    border-radius: 8px;
    background: var(--card-bg);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s ease;
}

.activity-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 8px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-time {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dark mode adjustments */
[data-theme="dark"] .metric-card,
[data-theme="dark"] .chart-container,
[data-theme="dark"] .recent-activity {
    background: var(--dark-card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .activity-item {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .activity-item i {
    background: var(--primary-color);
}

/* Animation keyframes */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Dashboard Metrics */
.metrics-grid {
    min-height: 150px; /* Ensure consistent height during transitions */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.metric-icon {
    background: var(--secondary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.metric-icon i {
    font-size: 1.5rem;
}

.metric-info h4 {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.metric-trend {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.metric-trend.positive {
    color: #00c853;
}

/* Dark mode adjustments */
[data-theme="dark"] .metric-card {
    background: var(--dark-card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .metric-icon {
    background: var(--secondary-color);
}

[data-theme="dark"] .metric-trend:not(.positive) {
    color: #999;
}

/* Dashboard Sections */
.dashboard-sections {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.section-navigation {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.nav-dots {
    display: flex;
    gap: 0.75rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.nav-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Dark mode adjustments */
[data-theme="dark"] .section {
    background: var(--dark-card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-dot {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .nav-dot:hover,
[data-theme="dark"] .nav-dot.active {
    background-color: var(--secondary-color);
}

/* Section specific styles */
.metrics-section,
.chart-section,
.activity-section {
    height: 100%;
}

.chart-section canvas {
    width: 100% !important;
    height: 200px !important;
}

/* Analytics Styles */
.analytics-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    min-height: 300px;
}

.analytics-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.analytics-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.analytics-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.analytics-card canvas {
    width: 100% !important;
    height: 200px !important;
}

/* Dark mode adjustments for analytics */
[data-theme="dark"] .analytics-card {
    background: var(--dark-card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive analytics grid */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Reports Styles */
.reports-overview {
    padding: 1rem;
}

.reports-overview h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.reports-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.report-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.report-card canvas {
    width: 100% !important;
    height: 250px !important;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.metric-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: var(--bg-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.metric-details h5 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metric-details .value {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.metric-details .trend {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-details .trend.positive {
    color: #00c853;
}

/* Dark mode adjustments for reports */
[data-theme="dark"] .report-card,
[data-theme="dark"] .metric-item {
    background: var(--dark-card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .metric-item i {
    background: var(--primary-color);
}

/* Responsive design for reports */
@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .report-metrics {
        grid-template-columns: 1fr;
    }
}

