/* Base styles for body and HTML */
body, html {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/wallpaper.jpeg'); /* Path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(10px); /* Increase blur for visibility */
    -webkit-filter: blur(10px); /* Vendor prefix for older browsers */
    z-index: -1; /* Ensure it stays behind all content */
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/wallpaper.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: rgba(83, 83, 83, 0.70);
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}
.accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: rgba(83, 83, 83, 0.70);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: rgba(83, 83, 83, 0.70); /* Semi-transparent white background */
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    padding: 20px; /* Add some padding inside the box */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
}
}
.accordion-body {
    padding: 1rem 1.25rem;
    background-color: rgba(83, 83, 83, 0.70); /* Semi-transparent white background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
}
.accordion-item {
    background-color: rgba(0, 0, 0, 0); 
    border: 1px solid rgba(0, 0, 0, 0.125);
}
.row {
    --bs-gutter-x: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y)* -1);
    margin-right: calc(var(--bs-gutter-x)* -.5);
    margin-left: calc(var(--bs-gutter-x)* -.5);
    background-color: rgba(83, 83, 83, 0);
}
/* Navbar styles */
.navbar {
    background: rgba(0, 0, 0, 0.11); /* Black with slight transparency */
    z-index: 3; /* Ensure navbar is above particles */
}

/* Video background styles */
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Fallback image for mobile or unsupported devices */
@media (max-width: 768px) {
    .video-background video {
        display: none;
    }
    .video-background {
        background: url('../assets/img/background.png') no-repeat center center/cover;
    }
}

/* Custom styles for btn-secondary dropdown button */
.btn-secondary {
    background-color: #B4C618; /* Custom background color */
    border-color: #B4C618; /* Custom border color */
    color: #000000; /* Custom text color */
}

/* Hover state */
.btn-secondary:hover {
    background-color: #B4C618; /* Darker shade for hover */
    border-color: #B4C618; /* Darker border for hover */
    color: #ffffff; /* Text color on hover */
}

/* Remove yellow flash on click and focus */
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.show { /* Add .show for the open state */
    background-color: #B4C618 !important; /* Match hover color */
    border-color: #B4C618 !important; /* Match hover color */
    color: #ffffff !important; /* Match hover text color */
    box-shadow: none !important; /* Remove Bootstrap's focus shadow */
    outline: none !important; /* Remove browser's default focus outline */
}

/* Custom dropdown menu styles */
.dropdown-menu {
    background-color: #343a40; /* Dark background for dropdown */
    border: 1px solid #B4C618; /* Border color matching the button */
}

.dropdown-item {
    color: #ffffff; /* Text color for dropdown items */
}

.dropdown-item:hover {
    background-color: #B4C618; /* Background color on hover */
    color: #000000; /* Text color on hover */
}

/* Custom styles for the jumbotron */
.jumbotron-custom {
    background-color: rgba(255, 255, 255, 0.20); /* 90% transparent white */
    backdrop-filter: blur(2px); /* Optional: Adds a blur effect */
    border-radius: 15px; /* Rounded corners */
    padding: 2rem; /* Spacing inside the jumbotron */
    margin: auto; /* Center horizontally */
}

/* Center the jumbotron vertically and horizontally */
.video-background {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
}

/* Custom CSS for smaller navbar text */
.navbar-text-small {
    font-size: 0.9rem; /* Adjust the size as needed */
}

/* Optional: Adjust the font size of the strong tags inside the navbar items */
.navbar-text-small strong {
    font-size: 0.9rem; /* Match the size or adjust as needed */
}

/* Hide navbar elements on mobile */
@media (max-width: 992px) {
  .navbar-text-small {
    display: none; /* Hide the navbar elements */
  }
}

/* Show mobile-specific elements in the jumbotron */
.mobile-info {
  display: none; /* Hide by default */
}

@media (max-width: 992px) {
  .mobile-info {
    display: block; /* Show on mobile */
  }
}

/* Custom Login Button */
.custom-login-btn {
  background-color: #B4C618; /* Green background */
  border-color: #B4C618; /* Green border */
  color: white; /* White text */
  z-index: 1000; /* Ensure the button is above other elements */
  position: relative; /* Required for z-index to work */
}

/* Hover state */
.custom-login-btn:hover {
  background-color: #9daa15; /* Slightly darker green on hover */
  border-color: #9daa15; /* Slightly darker border on hover */
  color: white; /* Keep text white on hover */
}

/* Active and Focus states */
.custom-login-btn:focus,
.custom-login-btn:active {
  background-color: #9daa15 !important; /* Match hover color */
  border-color: #9daa15 !important; /* Match hover border color */
  color: white !important; /* Keep text white */
  box-shadow: none !important; /* Remove Bootstrap's focus shadow */
  outline: none !important; /* Remove browser's default focus outline */
}

/* Add this to your custom.css file */
.jumbotron .btn-primary {
    background-color: #28a745; /* Green color */
    border-color: #28a745;
    font-size: 1.25rem;
    padding: 10px 20px;
    margin-top: 20px;
}

.jumbotron .btn-primary:hover {
    background-color: #218838; /* Darker green on hover */
    border-color: #1e7e34;
}

/* Sidebar styles */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #343a40; /* Light background for sidebar */
    overflow-x: hidden;
    transition: 0.3s;
    z-index: 1000; /* Ensure sidebar is above other content */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

.bg-light {
    background-color: #343a40 !important;
}

.btn-outline-secondary {
    color: #B4C618;
    border-color: #B4C618;
}

.sidebar.collapsed {
    width: 60px; /* Collapsed width */
}

.sidebar-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .btn {
    padding: 5px 10px;
}

.sidebar.collapsed .sidebar-header span {
    display: none; /* Hide farm name when collapsed */
}

.sidebar .nav-link {
    padding: 15px 20px;
    text-align: left;
    white-space: nowrap;
    color: #ffff; /* Dark text for sidebar links */
}

.sidebar.collapsed .nav-link {
    text-align: center;
}

.sidebar.collapsed .nav-link span {
    display: none; /* Hide text when collapsed */
}

.sidebar-nav {
    flex-grow: 1; /* Allow the navigation to take up remaining space */
}

.sidebar-footer {
    margin-top: auto; /* Push the footer to the bottom */
    padding: 10px;
}

.main-content {
    margin-left: 250px; /* Default margin for desktop */
    transition: 0.3s;
    padding: 20px;
}

.main-content.collapsed {
    margin-left: 60px; /* Adjusted margin when sidebar is collapsed */
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px; /* Collapsed by default on mobile */
    }
    .sidebar .nav-link span {
        display: none; /* Hide text on mobile by default */
    }
    .main-content {
        margin-left: 60px; /* Adjusted margin for mobile */
    }
    .sidebar-header .fw-bold {
        display: none; /* Hide the farm name */
    }
}

/* Semi-transparent box styling */
.transparent-box {
    background-color: rgba(83, 83, 83, 0.60); /* Semi-transparent white background */
    padding: 20px; /* Add some padding inside the box */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10); /* Optional: Add a subtle shadow */
}

/* Ensure text is readable */
.transparent-box a {
    color: #000; /* Black text color */
    text-decoration: none; /* Remove underline from links */
    font-weight: bold; /* Optional: Make text bold */
}

/* Custom class for red logout link */
.logout-link {
    color: white !important; /* Red color for the logout link */
}

/* Optional: Add hover effect */
.logout-link:hover {
    color: darkred !important; /* Darker red on hover */
}

/* Container styles */
.container {
    margin: 0 auto;
    padding: 20px;
}

/* Card styles */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #28a745;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.card-body {
    padding: 20px;
}

/* Info grid styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Info item styles */
.info-item {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
}

.info-item span {
    font-size: 1.1rem;
    color: #666;
}

/* Logout button styles */
.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
}