/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  
  /* Header styling */
  /* Style the header section */
  .header-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: white; /* Green accent */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    animation: fadeIn 1s ease-in-out;
    margin-top: 20px;
}

.highlight-green {
    color: #4caf50; /* Green for emphasis */
    font-weight: bold;
}
  
  /* Subtext under the title */
  .header-subtitle {
    font-size: 18px;
    text-align: center;
    color: #ddd;
    margin-bottom: 15px;
}
  /* Stats Section */
.stats-container {
    display: flex;
    justify-content: center; /* Center align the stats */
    gap: 20px; /* Space between boxes */
    margin: 20px auto;
    text-align: center;
    align-items: flex-start; /* Aligns items to the top naturally */
}

.stat {
    background: rgba(255, 255, 255, 0.1); /* Subtle background */
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #4caf50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: fit-content; /* Ensures the width fits the content */
}

/* Reduce height for the outer stat boxes */
.stat:first-child,  /* Trader Reviews */
.stat:last-child {   /* Prop Firms Listed */
    padding: 10px 15px; /* Reduce padding */
    min-height: auto; /* Allow height to adjust to content */
    height: fit-content; /* Prevent unnecessary extra space */
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #4caf50;
    display: block;
}

.stat-text {
    font-size: 14px;
    color: white;
}

#top-rated-firms {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: white;
}

#top-rated-firms li {
    margin-top: 3px;
}

  #searchInput {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    color: black;
  }
  /* Add animation to header */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
  
  /* Container for prop firm cards */
  .propfirms-container {
    display: flex;  /* Change from grid to flex */
    flex-wrap: wrap;  /* Allows wrapping */
    justify-content: center;  /* Center cards evenly */
    gap: 15px;  /* Adjust spacing */
    margin-bottom: 20px;
    align-items: stretch; /* Make all items the same height */
    align-content: flex-start; /* Ensures rows maintain order */
  }
  .propfirms-container::after {
    content: "";
    width: 100%;
    display: block;
}
  
.propfirm-link {
    text-decoration: transparent; /* Remove underline */
    color: inherit; /* Maintain text color */
    display: inline-block; /* Ensures block behavior */
}


  .propfirms-container .propfirm {
    width: 260px; /* Fixed width */
    min-height: 320px; /* Prevent shrinking */
    flex-grow: 0; /* Prevent resizing */
    flex-shrink: 0; /* Prevent shrinking */
}


  /* Styling each prop firm card */
  .propfirm {
    background: #2a2a4f;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
    color: white;
    width: 260px; /* Fixed width */
    height: 320px; /* Fixed height */
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distributes content evenly */
    cursor: pointer; /* Change cursor to indicate it's clickable */
    border: 2px solid white;
    border-radius: 35px;
  }
  
  .propfirm:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
  }
  
  /* Ensure the entire card is clickable */
  .propfirm a {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  /* Prop firm logo image */
  .propfirm-logo {
    width: 100%;
    height: 100px;
    max-width: 150px; /* Set a max width */
    object-fit: contain;
    background-color: #2a2a4f;
    margin: 10px auto; /* Centers the logo */
    display: block;
  }
  
  /* Container for info (name, instrument, rating) */
  .propfirm-info {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .propfirm-name {
    font-size: 1.2em;
    margin-bottom: 5px;
  }
  
  .instrument-type {
    color: #7e7e7e;
    margin-bottom: 10px;
  }
  
  /* Rating styles */
  .rating {
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures the rating is centered */
    width: 100%; /* Takes full width */
    text-align: center; /* Aligns text elements */
    margin-top: 10px; /* Adds space from the instrument type */
  }
  
  .rating-value {
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 5px;
    padding: 3px 6px;
    border-radius: 3px;
    color: #fff;
  }
  
  /* Rating colors based on the value */
  .rating-green {
    background-color: #4caf50;
  }
  
  .rating-yellow {
    background-color: #ff9800;
  }
  
  .rating-red {
    background-color: #f44336;
  }
  
  .rating-count {
    font-size: 0.9em;
  }
  /* Style the filter section */
  .filter-container {
    display: flex;
    align-items: center; /* Aligns label and select dropdown */
    gap: 8px; /* Adds spacing between label and dropdown */
    font-size: 16px;
    color: white; /* Adjust text color */
    margin-bottom: 10px; /* Adds spacing below */
}

/* Adjust label to align better with the dropdown */
  .filter-container label {
    font-size: 16px;
    font-weight: bold;
    line-height: 1; /* Ensures vertical centering */
    margin-top: -6px; /* Fine-tune vertical positioning */
}

  /* Style the filter dropdown */
#filterSelect {
    width: 200px; /* Set a reasonable width */
    max-width: 100%; /* Prevent it from overflowing */
    padding: 8px; /* Add padding for better appearance */
    font-size: 14px; /* Adjust font size */
    background-color: #e0e0e0; /* Light background */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Indicate it's interactive */
    color: black;
}

/* ✅ Ensure the payout proof container is properly visible */
/* ✅ Ensure the payout proof container is properly visible */
/* Force small size for payout proof image explicitly and strongly */
#payout-proof-container img.payout-proof-preview-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    border: 2px solid white !important;
    display: block !important;
}

img {
    width: auto !important;
    max-width: none !important;
}



/* Container fix for clarity (no issues here) */
#payout-proof-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    width: 120px !important;
    max-width: 120px !important;
    overflow: hidden;
}

/* Button is fine as-is */
#remove-proof-btn {
    background-color: #ff4747;
    color: white;
    padding: 3px 6px;
    font-size: 10px;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 5px;
}

#remove-proof-btn:hover {
    background-color: #e63939;
}

/* Utility class */
.hidden {
    display: none !important;
}


