:root {
    --primary-color: #6d6d6d8a;
    --secondary-color: #00ff5591;
}

/* Fixed navbar that stays at the top */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #000000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Add padding to body to prevent content from hiding under navbar */
body {
    padding-top: 80px; /* Adjust based on your navbar height */
}




/* Main content gradient background */
body {
    position: relative;
    min-height: 100vh;
    background: #1a1a1a; /* Fallback color */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -2;
}

/* Keep navbar and footer with their own backgrounds */
/* .navbar, .footer {
    position: relative;
    z-index: 1;
    background-color: #1a1a1a !important;
} */

/* Optional: Add a small transition between navbar/content and content/footer */
.container:first-of-type {
    margin-top: 1rem;
}

.footer {
    margin-top: 2rem;
}


/* .hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    margin-top: 2rem;
} */
/* test hero section */
/* .hero-section {
  background: linear-gradient(135deg,var(--primary-color), var(--secondary-color));
  min-height: 80vh;
  color: white;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero-section * {
  position: relative;
  z-index: 1;
} */
/* test hero section end */

/* bot-commands-section start */
/* .bot-commands-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  overflow: hidden;
}

.bot-commands-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.bot-commands-section * {
  position: relative;
  z-index: 1;
} */

/* bot-commands-section end */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
}
/* Background image for index page only */
body.index-page {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Optional: Add overlay for better text readability */
body.index-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Semi-transparent background box */
.bg-box {
    background-color: rgba(0, 0, 0, 0.7); /* Black with 50% transparency */
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px); /* Optional: adds blur effect */
}

/* Alternative colors */
.bg-box-dark {
    background-color: rgba(45, 45, 45, 0.7); /* Dark grey with 50% transparency */
    padding: 2rem;
    border-radius: 10px;
}

.bg-box-primary {
    background-color: rgba(108, 99, 255, 0.7); /* Your primary color with 50% transparency */
    padding: 2rem;
    border-radius: 10px;
}


/* Dark theme background */
[data-theme="dark"].index-page {
    background-image: url('background-dark.png'); /* Optional different image for dark theme */
}

[data-theme="dark"].index-page::before {
    background-color: rgba(0, 0, 0, 0.5); /* Darker overlay for dark theme */
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.fixed-carousel {
    height: 400px;
}

.fixed-carousel .carousel-inner,
.fixed-carousel .carousel-item {
    height: 400px;
}

.fixed-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Carousel control button styling */
.carousel-control-zoom,
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(248, 248, 248, 0.712);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}
.carousel-control-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10;
}

.carousel {
  position: relative;
}

.carousel-control-zoom:hover,
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 255, 85, 0.8); /* your green with more opacity */
  color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    font-size: 1.5rem; /* makes the icon bigger */
    background-color: rgba(255,255,255,0.5);
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.carousel-image.zoomed {
  transform: scale(2);
}
/* .modal-content {
  background-color: #1a1a1a;
  color: #00ff5591;
  border: 2px solid #444;
} */

.modal-content {
  background: rgba(0, 255, 85, 0.767);
  backdrop-filter: blur(10px);
  color: rgb(1, 187, 17);
  border: 1px solid rgb(100, 100, 100);
}

.modal-content {
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.custom-modal-close {
  width: 50px;
  height: 50px;
  font-size: 1.5rem; /* makes the icon bigger */
  background-color: rgba(255,255,255,0.5);
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.custom-modal-close:hover {
  background-color: rgba(0, 255, 85, 0.8); /* your green with more opacity */
  color: white;
}

.modal.fade .modal-dialog {
  transition: transform 0.4s ease-out;
  transform: scale(0.9);
}
.modal.fade.show .modal-dialog {
  transform: scale(1);
}


.modal-content .btn-close {
  background-color: rgba(0, 255, 85, 0.767);
  opacity: 0.8;
}
.modal-content .btn-close:hover {
  opacity: 1;
}


.modal-body img {
    width: 100%;
    height: auto;
}


.zoomed {
  transform: scale(2);
}

/* Dark theme styles */
[data-theme="dark"] {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

[data-theme="dark"] .navbar {
    background-color: #000000 !important;
}

[data-theme="dark"] .navbar-light .navbar-brand,
[data-theme="dark"] .navbar-light .nav-link {
    color: #ffffff !important;
}

/* Dark theme table styles */
[data-theme="dark"] .table {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) th,
[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) td {
    background-color: #3d3d3d !important;
}

[data-theme="dark"] .table thead th {
    background-color: #3d3d3d !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

[data-theme="dark"] code {
    background-color: #444 !important;
    color: #fff !important;
}

[data-theme="dark"] .footer {
    background-color: #1a1a1a !important;
}

[data-theme="dark"] .footer .text-muted {
    color: #cccccc !important;
}

[data-theme="dark"] .card {
    background-color: #2d2d2d;
    color: #ffffff;
}

/* Dark theme accordion styles */
[data-theme="dark"] .accordion-item {
    background-color: #2d2d2d !important;
    border-color: #555 !important;
}

[data-theme="dark"] .accordion-button {
    background-color: #3d3d3d !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #4d4d4d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25) !important;
}

[data-theme="dark"] .accordion-body {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .text-muted {
    color: #cccccc !important;
}

[data-theme="dark"] h4 {
    color: #ffffff !important;
}


/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

[data-theme="dark"] .theme-toggle {
    border-color: #666;
    color: #ffffff;
}

/* Status page styles */
.status-indicator {
    font-size: 2rem;
}

.status-indicator.online {
    color: #28a745;
}

.status-indicator.warning {
    color: #ffc107;
}

.status-indicator.offline {
    color: #dc3545;
}

.status-badge {
    font-weight: 500;
}

.status-badge.online {
    color: #28a745;
}

.status-badge.warning {
    color: #ffc107;
}

.status-badge.offline {
    color: #dc3545;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

[data-theme="dark"] .timeline::before {
    background-color: #555;
}

[data-theme="dark"] .service-status .border {
    border-color: #555 !important;
}

/* Always dark navbar */
.navbar {
    background-color: #2d2d2d !important;
}

.navbar-light .navbar-brand,
.navbar-light .nav-link {
    color: #cccccc !important;  /* Change default link color here */
}

.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
    color: #ffffff !important;
}

/* Animated navbar links */
.navbar-nav .nav-link {
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    color: #f1f1f1 !important;  /* Default state color */
}

.navbar-nav .nav-link:hover {
    color: #00ff55 !important;  /* Change hover color here */
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #00ff55;  /* Change underline color here */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Animate Discord button */
.navbar .btn-link {
    transition: transform 0.2s ease, color 0.3s ease;
}

.navbar .btn-link:hover {
    transform: translateY(-2px);
}

.navbar .btn-link:hover i {
    color: #5865f2 !important; /* Discord brand color */
}

/* Center navbar links */
.navbar-nav {
    margin-left: auto;
    margin-right: auto;
}

/* Or position them closer to logo */
.navbar-nav {
    margin-left: 3rem; /* Adjust this value */
    margin-right: auto;
}


/* Mobile optimizations */
@media (max-width: 768px) {
    .fixed-carousel {
        height: 250px;
    }
    
    .fixed-carousel .carousel-inner,
    .fixed-carousel .carousel-item {
        height: 250px;
    }
    
    .hero-section {
        padding: 2rem 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    /* Make hero buttons smaller on mobile */
    .hero-section .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-section .d-flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Mobile table improvements */
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle {
        padding: 3px 8px;
        font-size: 12px;
    }
    
    /* Horizontal mobile navbar
    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.25rem 0.50rem;
        margin: 0 0.25rem;
        font-size: 0.9rem;
    }
    
    /* Make sure Discord button aligns properly */
    /* .navbar .btn-link {
        padding: 0.5rem 0.75rem;
        margin: 0 0.25rem; */
    /* } */
    /* Make navbar fixed at top */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        padding: 0.5rem 0;
    }
    
    /* Add padding to body to prevent content from hiding under navbar */
    body {
        padding-top: 70px;
    }
    
    /* Create scrollable container for nav links */
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        padding: 0.5rem 0;
        margin: 0;
        width: 100%;
        scrollbar-width: none; /* Firefox */
    }
    
    /* Hide scrollbar */
    .navbar-nav::-webkit-scrollbar {
        display: none;
    }
    
    /* Style nav links for scrolling */
    .navbar-nav .nav-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        font-size: 0.9rem;
    }
    
    /* Add visual indicator that more items are available */
    .navbar::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(45, 45, 45, 0.8));
        pointer-events: none;
    }
}