 body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding-bottom: 80px;
      background: #f4f4f9;
      display: flex;
      flex-direction: column;
      height: 100vh;

    }

    .top-bar {
      background-color: #800000;
      color: white;
      padding: 15px;
      text-align: left;
      font-size: 24px;
      font-weight: bold;
    }

    .page-title {
      font-size: 20px;
      font-weight: bold;
      color: #800000;
      text-align: center;
      margin-top: 150px;
    }
    
     .page-title2 {
      font-size: 20px;
      font-weight: bold;
      color: #800000;
      text-align: center;
    }

    .appeal-list {
      flex: 1;
      padding: 12px;
      overflow-y: auto;
      margin-bottom:40px;
    }

    .appeal-item {
      background-color: white;
      border-radius: 10px;
      padding: 12px;
      margin-bottom: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
    }

    .appeal-info {
      flex: 1;
      padding-right: 10px;
    }

    .appeal-info h3 {
      margin: 0;
      font-size: 18px;
      color: #800000;
    }

    .blood-group {
      font-size: 42px;
      font-weight: bold;
      color: #800000;
      text-align: right;
    }

    .appeal-info p {
      margin: 0 0;
      font-size: 16px;
      color: #555;
    }

    .posted-time {
      font-size: 14px;
      color: #888;
      position: absolute;
      bottom: 5px;
      right: 10px;
    }

    .contact-info {
      font-size: 16px;
      color: #800000;
      margin-top: 5px;
    }

    .call-icon {
      font-size: 18px;
      color: #800000;
      margin-left: 10px;
      cursor: pointer;
    }

    .add-appeal-btn {
      position: fixed;
      bottom: 120px;
      right: 20px;
      width: 60px;
      height: 60px;
      background-color: dodgerblue;
      color: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 32px;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: background-color 0.3s;
    }

    .add-appeal-btn:hover {
      background-color: #B22222;
    }

    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      margin-top:60px;
      background-color: rgba(255, 255, 255, 0.5);
      backdrop-filter: blur(5px); /* Blur effect */
      display: flex;
      justify-content: space-around;
      padding: 6px 0;
      z-index: 10; /* Ensures it's always on top */
      border-top: 1px solid #eee; /* Thin border for separation */
    }

    .bottom-nav a {
      color: rgba(128, 0, 0, 0.7);
      font-size: 13px;
      text-align: center;
      text-decoration: none;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: color 0.3s ease-in-out;
    }

    /* Icon styles */
    .bottom-nav a .icon {
      font-size: 24px;
      margin-bottom: 4px;
      transition: transform 0.3s ease-in-out;
    }

    /* Icon hover effect */
    .bottom-nav a:hover {
      color: #800000; /* Maroon color when hovered */
    }

    .bottom-nav a:hover .icon {
      transform: scale(1.2); /* Slightly increase icon size on hover */
    }
    
    /* Active tab styles */
    .bottom-nav a.active {
      color: #800000; /* Maroon color for active tab */
      font-weight: bold; /* Make text bold */
    }
    
    .bottom-nav a.active .icon {
      transform: scale(1.2); /* Slightly larger icon for active state */
    }
    
     /* Form container */
    .form-container {
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      width: 90%;
      max-width: 400px;
      padding: 20px;
      box-sizing: border-box;
    }

    /* Form styles */
    form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    input, select, textarea {
      padding: 12px;
      border-radius: 24px;
      border: 1px solid #ccc;
      font-size: 16px;
      width: 100%; /* Ensure fields fit the container */
      box-sizing: border-box; /* Include padding and border in total width */
    }

    textarea {
      resize: vertical;
      height: 120px;
    }

    /* Submit Button */
    .submit-btn {
      background-color: #800000;
      color: white;
      border: none;
      padding: 15px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 24px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .submit-btn:hover {
      background-color: dodgerblue;
    }
    
    /* MOBILE RESPONSIVENESS */
    @media (max-width: 600px) {
      .top-bar {
        font-size: 20px;
      }

      .appeal-info h3 {
        font-size: 16px;
      }

      .appeal-info p {
        font-size: 14px;
      }
       .form-container {
        width: 100%; /* Full width on smaller screens */
      }

      .submit-btn {
        padding: 12px;
      }
    }
    
    /* TABLE */
  table {
        width: 80%;
        margin: 20px auto;
        border-collapse: collapse;
        border-radius: 10px;
        overflow: hidden; 
    }
    table th, table td {
        padding: 10px;
        text-align: center;
        border: 1px solid #ddd;
    }
    
    table tr:nth-child(even) {
            background-color: #f2f2f2;  /* Light grey for even rows */
        }
        
        table tr:nth-child(odd) {
            background-color: white;    /* White for odd rows */
        }
        
        table th {
        /*   background-color: #4CAF50;  /* Green for header */
            background-color: dodgerblue;
            color: white;
        }
        
        table td {
            font-size: 14px;
        }
        
    .buttonTable {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        margin: 20px;
        border-radius: 5px;
    }
    .buttonTable:hover {
        background-color: #45a049;
    }
    .edit-btn {
        background-color: #ff9800;
        color: white;
        padding: 5px 10px;
        text-decoration: none;
        border-radius: 3px;
    }
    .edit-btn:hover {
        background-color: #e68900;
    }
    
    /* ADMIN */


    /* Sidebar */
    .sidebar {
        position: fixed;
        top: 50px; /* Below the top bar */
        left: 0;
        width: 250px;
        height: 100%;
        background-color: #4CAF50;
        color: white;
        overflow-y: auto;
        transition: width 0.3s ease;
        z-index: 999;
    }
    
    .sidebar.collapsed {
        width: 60px;
    }
    
    .sidebar ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    
    .sidebar ul li {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .sidebar ul li a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        display: block;
        text-align: left;
    }
    
    .sidebar ul li a:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .sidebar .toggle-btn {
        position: absolute;
        top: 10px;
        right: -30px;
        background-color: #4CAF50;
        color: white;
        width: 30px;
        height: 30px;
        text-align: center;
        cursor: pointer;
        border-radius: 5px;
        font-size: 18px;
        line-height: 30px;
    }
    
    /* Page Content */
    .page-content {
        margin-left: 250px;
        padding: 20px;
        transition: margin-left 0.3s ease;
    }
    
    .page-content.collapsed {
        margin-left: 60px;
    }
    
    
    
    /* HEROES PAGE */
    
    .pyramid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
    }

    .pyramid-row {
      display: flex;
      justify-content: center;
      gap: 12px;
    }

    /* Top donor */
    .donor.large {
      width: 154px;
      padding: 6px 12px;
      margin-top: 18px;
    }

    /* Row 2 donors */
    .donor.medium {
      width: 126px;
      padding: 8px;
    }

    /* Row 3 donors */
    .donor.small {
      width: 106px;
      padding: 4px 0px;
    }

    .donor {
      position: relative; /* Allows child elements to be positioned relative to this container */
      display: flex;
      flex-direction: column;
      align-items: center;
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      text-align: center;
    }
    
    .donor-points {
      position: absolute; 
      top: 12px; 
      left: 60%; 
      transform: translateX(-60%); 
      background-color: rgba(0, 0, 0, 0.7); 
      color: white;
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 12px; 
      font-weight: bold;
      transform: rotate(45deg); 
      transform-origin: center;
    }


    .donor-photo {
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #800000;
      margin-bottom: 8px;
    }

    /* Photo sizes */
    .donor.large .donor-photo {
      width: 120px;
      height: 120px;
    }

    .donor.medium .donor-photo {
      width: 90px;
      height: 90px;
    }

    .donor.small .donor-photo {
      width: 70px;
      height: 70px;
    }

    .donor-name {
      font-size: 14px;
      font-weight: bold;
      margin: 0;
      color: #214de6;
    }

    .donor-times {
      font-size: 14px;
      margin:4px;
      color: #555;
    }
    
    .hero-btn {
      margin: 30px auto;
      background-color: dodgerblue;
      color: white;
      padding: 12px 24px;
      font-size: 16px;
      font-weight: bold;
      text-decoration: none;
      text-align: center;
      border-radius: 24px;
      cursor: pointer;
      transition: background-color 0.3s;
      width: 292px;

    }

    .hero-btn:hover {
      background-color: #B22222;
    }
    /* HEROES PAGE */
    
    /* LEARN PAGE */
    
    .container {
        width: 90%;
        margin: auto;
        text-align: center;
    }
    .section {
        background: white;
        padding: 15px;
        margin: 15px 0;
        border-radius: 10px;
        box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
    }
    video {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
        }
    .tweets {
        height: 300px;
        overflow-y: scroll;
        border: 1px solid #ddd;
        padding: 10px;
    }
    .card {
        width: 92%;
        padding-bottom: 30px;
        background-color: #fff;
        border-radius: 15px;
        overflow: hidden;
        /*opacity: 0.6; */
        /*margin-left: 20px;
        margin-bottom: 20px;
        padding-left: 5px; */
        display: inline-block;
        /*margin-left:4%;*/
        vertical-align: top;
        box-shadow: 1px 8px 16px 4px rgba(0, 0, 0, .5);
        }
    .btn {
      background-color: #0077be;
      /*background-color: dodgerblue; */
      color: white;
      padding: 4px 5px;
      border: none;
      cursor: pointer;
      width: 300px;
      opacity: 0.9;
      border-radius: 40px;
      margin-left:5%;
      margin-right:5%;
      font-size:1.1rem;
    }
    
   /* The switch - the box around the slider */
    .switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }
    
    /* Hide default HTML checkbox */
    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    
    /* The slider */
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      -webkit-transition: .4s;
      transition: .4s;
    }
    
    .slider:before {
      position: absolute;
      content: "";
      height: 26px;
      width: 26px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      -webkit-transition: .4s;
      transition: .4s;
    }
    
    input:checked + .slider {
      background-color: #2196F3;
    }
    
    input:focus + .slider {
      box-shadow: 0 0 1px #2196F3;
    }
    
    input:checked + .slider:before {
      -webkit-transform: translateX(26px);
      -ms-transform: translateX(26px);
      transform: translateX(26px);
    }
    
    /* Rounded sliders */
    .slider.round {
      border-radius: 34px;
    }
    
    .slider.round:before {
      border-radius: 50%;
    }
    
    /* LEARN PAGE*/
    
    .carousel-container {
      width: 100%;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      background: #f8f8f8;
      padding: 10px;
      border-radius: 8px;
    }
    
    .carousel {
      display: flex;
      gap: 10px;
    }
    
    .carousel img {
      flex: none;
      width: 100%;
      max-width: 350px;
      height: auto;
      border-radius: 12px;
      scroll-snap-align: start;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    /*LEARN PAGE*/