:root {
    --primary-color: #FFD700;
    --accent-color: #000;
    --background: #f4f4f4;
    --card-bg:white;
    --radius: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --hover-color: #000;
    --hover-bg: #fff;
    --post-border:black;
  }

  .dark-theme {
    --primary-color: #000;
    --accent-color: #FFD700;
    --background: #1a1a1a;
    --card-bg:rgb(0, 0, 0);
    --hover-color: #FFD700;
    --hover-bg: #000;
    --post-border:white
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
  }

  body {
    background: var(--background);
    color: var(--accent-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    ::-webkit-scrollbar{
      display: none;
    }
   -ms-overflow-style: none;  /* IE and Edge */
   scrollbar-width: none;     /* Firefox */
    
  }

  .dashboard {
    display: flex;
    height: 100vh;
  }

  .sidebar {
    background: linear-gradient(135deg, #ffe600, #ffc400);
    padding: 2rem 1rem;
    width: 22%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .logo{
    width: 100%;
    height: 60px;
    display: flex;
    gap: 10px;
    font-family: poppins;
    font-size: 200%;
    font-weight: bold;
    align-items: center;
    margin-left: 10px;
    text-decoration: none;
    color: black;

  }
  .logo img{
    width: 40px;
    height:100%;
    object-fit: contain;
  }


  .sidebar .a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: all 0.3s;
  }

  .sidebar .a:hover,
  .sidebar .a.active {
    background: var(--card-bg);
    margin-left: -1rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }

  .main{
    width: 50%;
    height: 100%;
    
  }
  .h{
    display:none;
  }
  .ssf{
    margin: 10px 0 ;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
  }
  #search{
    width: 60%;
    height: 100%;
    border: none;
    outline: none;
    background-color: white;
    margin: 0 10px;
    padding: 0 10px;
    border-radius: 12px;

  }
  #Sort{
    width: 16%;
    height: 100%;
    border: none;
    outline: none;
    background-color: white;
    margin: 0 10px;
    padding:  10px;
    border-radius: 12px;
  }
  #Sort option{
    padding: 10px;
    

  }
  #filter{
    width: 16%;
    height: 100%;
    border: none;
    outline: none;
    background-color: white;
    margin: 0 10px;
    padding: 10px;
    border-radius: 12px;
  }
  #screen{
    width:calc(100% -20px);
    height: calc(100% - 60px);
    margin: 10px;
    overflow-y: scroll;
    overflow-x: hidden;
    background: var(--card-bg);
    border-radius: 12px;
  }
  /* post card structure*/
  .post {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border: .1px solid rgb(241, 241, 241);
    border-radius: var(--radius);
    padding: 15px;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    transition: transform 0.3s ease;
  }
  
  /* Header Section */
  .post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  /* Style for edit button */
  .edit-btn {
    background-color: var(--card-bg);
    color: var(--accent-color);
    border: 2px solid var(--primary-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .edit-btn:hover {
    background-color: var(--primary-color);
    color: var(--hover-bg);
    
  }
  .admin-actions {
    display: flex;
    gap: 8px;
  }
  
  .edit-btn,
  .delete-btn {
    background-color: #eee;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
  }
  
  .delete-btn {
    background-color: #f44336;
    color: white;
  }
  
  #org-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  #org-logo {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
  }
  
  #org-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #org-name span {
    font-weight: bold;
    font-size: 1.1rem;
  }

  
  /* Content Section */
  .post-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .poster {
    flex: 1 1 40%;
    max-height: 200px;
  }
  
  .poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #f0f0f0;
  }
  .location-tag {
    margin-top: 10px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #ffa500);
    color: var(--hover-bg);
    padding: 8px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: fit-content;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s ease;
  }
  
  .location-tag:hover {
    transform: scale(1.05);
  }
  
  .loc-icon {
    width: 28px;
    height: 28px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .loc-text {
    color: white;
  }
  
  
  /* Text Details */
  .post-details {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background-color: var(--background);
  }
  
  .post-details > div {
    padding: 8px 12px;
    background-color: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
  }
  .post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
  }
  
  .action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
  }
  
  .volunteer-btn {
    background-color: var(--primary-color);
    color: var(--accent-color);
  }
  
  .donate-btn {
    background-color: red;
    color: white;
  }
  
  .action-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
  


















  /* message and notification  */
  .msg-noti {
    
    top: 70px;
    right: 20px;
    margin: 20px 10px;
    width:26%;
    height: calc(100%-40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
  }
  
  .mess-content,
  .noti-content {
    background-color: white;
    width: 100%;
    height: 48%;
    border-radius: 16px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.07);
    padding: 14px;
    display: flex;
    flex-direction: column;
  }
  
  .box-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    gap: 8px;
  }
  
  .box-header i {
    color: #ffcc00;
    font-size: 18px;
  }
  
  .box-body {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    padding-top: 8px;
    color: #777;
  }
  
  .theme-toggle {
    margin-top: auto;
    padding: 0.5rem 1rem;
    background: #000;
    color: #FFD700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
  }

  @media (max-width: 550px) {
    .sidebar {
      display: none;
    }

    .grid {
      grid-template-columns: 1fr;
    }
  }