body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../img/admindashboard.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
ul li {
    position: relative; /* Make the list item the positioning reference */
    margin: 15px 0;
}

ul li a {
    display: flex; /* Ensures the notification stays aligned with the text */
    align-items: center;
    justify-content: space-between;
    position: relative; /* Necessary for the absolute-positioned notification */
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 10px 15px;
    width: 200px; /* Adjust the width so the text and notification fit */
    background: linear-gradient(45deg, #2b2b2b, #3a3f44);
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.notification {
    position: absolute;
    right: 5px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 3px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
    display: none; /* Initially hidden */
}

ul li a:hover {
    background: linear-gradient(45deg, #485563, #2b5876);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Outer wrapper that creates the rainbow margin */
.rainbow-margins {
    display: inline-block;          /* So it only wraps as wide as .container */
    padding: 12px;                  /* This is the “thickness” of the rainbow border */
    border-radius: 16px;

    /* Animated rainbow gradient */
    background: linear-gradient(
        45deg,
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet,
        red
    );
    background-size: 400% 400%;
    animation: rainbow 5s linear infinite;
}

/* Keyframes for the rainbow animation */
@keyframes rainbow {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
.rainbowtext {
    /* Make sure the text is large and bold enough to see the effect! */
    font-size: 1.5rem;
    font-weight: bold;
    /* Create a linear gradient with rainbow colors */
    background: linear-gradient(
      90deg,
      red,
      orange,
      yellow,
      green,
      blue,
      indigo,
      violet,
      red
    );
    /* We only want to see the gradient through the text */
    -webkit-background-clip: text;
    color: transparent;
    /* Let’s make the gradient bigger than needed so we can animate its position */
    background-size: 400% auto;
    /* The magic happens here */
    animation: rainbow 3s linear infinite;
    /* The text alignment and display are optional, but often helpful */
    display: inline-block;
    text-align: center;
  }

  @keyframes rainbow {
    0% {
      background-position: 0% center;
    }
    100% {
      background-position: 100% center;
    }
  }
/* Inner box */
.container {
    /* Remove `width: 100%` so it doesn’t stretch the entire page */
    /* Instead, pick a comfortable fixed width or rely on content size */
    width: 450px;              /* for example */
    max-width: 90vw;           /* so it can shrink on smaller screens */
    
    background-color: #5e5e5e;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);

    /* If you don’t actually need a second background image, remove the next lines */
    /* Or if you keep it, consider using a smaller image or a partial overlay so the rainbow shows clearly */
    background-image: url('../img/admindashboard.webp');
    background-position: center;
    background-size: cover;   /* helps scale the background inside the box */
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul li {
    margin: 15px 0;
}

ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 10px 15px;
    display: inline-block;
    background: linear-gradient(45deg, #2b2b2b, #3a3f44);
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

ul li a:hover {
    background: linear-gradient(45deg, #485563, #2b5876);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #ff5722;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

button:active {
    background-color: #d84315;
}

/* Add a cool hover effect to the links */
ul li a:hover {
    background: linear-gradient(45deg, #373b44, #9922ea);
    color: #ffffff;
}

/* Make the transition on hover smoother */
*, *::before, *::after {
    transition: all 0.3s ease;
}
