/* Table header – same as participant list */
.competition-table-header {
  background: #D9A128;
  color: #ffffff;
  font-weight: bold;
  display: grid;
  grid-template-columns: 2fr 1.8fr 1.5fr 1fr 120px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.competition-table-header > div {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 0;
  padding: 12px 15px;
}

.competition-table-header > div:last-child {
  justify-content: center;
}

/* Data rows */
.competition-table-row {
  display: grid;
  grid-template-columns: 2fr 1.8fr 1.5fr 1fr 120px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  align-items: center;
  transition: background 0.2s ease;
  background: #FFFBF4;
}

.competition-table-row:hover {
  background: #fffdf9;
}

.competition-table-row > div {
  padding: 12px 15px;
  display: flex;
  align-items: center;
}



.competition-row:last-child {
  border-bottom: none;
}

.competition-cell {
  padding: 10px 15px;
  color: #333;
}

.competition-cell-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.competition-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.competition-actions .action-btn {
  background: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 13px;
}

.competition-actions .action-btn:hover {
  color: #D9A128;
}

/* Competition table container */
.competition-table-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Pagination inside table */
.competition-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #FFFBF4;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.competition-pagination-box {
  display: flex;
  gap: 5px;
  align-items: center;
}

.competition-pagination-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
}

.competition-pagination-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #D9A128;
}

.competition-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.competition-pagination-btn.active {
  background: #D9A128;
  color: #fff;
  border-color: #D9A128;
}

.competition-logo-inline {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Status badges – rounded like participant list, same width for Active/Inactive */
.competition-status-badge {
  display: inline-block;
  min-width: 72px;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
}

.competition-status-active {
  background: #000;
  color: #fff;
  border: 1px solid #ddd;
}

.competition-status-inactive {
  background: #D9A128;
  color: #fff;
}

.competition-cell-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.competition-action-btn {
  background: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.competition-action-btn:hover {
  color: #D9A128;
}


/* Slanted/folded corner using ::before */
.competition-header-box {
  background-color: #e6f5f0; /* Light green */
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  
}



.competition-heading {
  font-weight: 600;
  color: #2c2c2c;
}

.competition-card {
  background-color: #ffffff; /* Light green (from your screenshot) */
  border-left: 5px solid #000000; /* Soft green border accent */
  border-radius: 8px;
  padding: 1rem 1.2rem;
  transition: box-shadow 0.2s;
}


.competition-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.competition-name {
  color: #2c2c2c;
  margin-bottom: 0.5rem;
}

.competition-meta {
  font-size: 0.95rem;
  color: #555;
}

.status-badge {
  font-size: 0.75rem;
  text-transform: capitalize;
}

/* Logo inside competition card */
.competition-logo {
    /* Use the styling from the competition-card img selector below */
    width: 90px; /* Adjusted based on .competition-card img */
    margin-right: 10px; /* Space from text */
    /* object-fit: contain; */
}

/* This selector targets the competition logo specifically */
/* You may not need this if .competition-logo handles it, but kept for specificity */
.competition-card img {
    max-width: 50px;
    max-height: 50px;
}

/* Dark clickable background */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

/* Centered modal */
.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 500px;
  max-width: 90%;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* Close button */
.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}




/* Slanted/folded corner using ::before */
.competition-header-box {
    background-color: #e6f5f0; /* Light green */
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
}

.competition-heading {
    font-weight: 600;
    color: #2c2c2c;
}

/* Updated .competition-card to include the absolute positioning for icons and match the green vertical bar */
.competition-card {
    background-color: #ffffff;
    /* Removed redundant border-left here, using a pseudo-element for the visual look */
    /* border-left: 5px solid #000000; */ 
    border-radius: 8px;
    padding: 1rem 1.2rem;
    transition: box-shadow 0.2s;
    position: relative; /* Crucial for positioning the icons */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for lift */
    border: 1px solid #e0e0e0; /* Subtle outer border */
}

/* Vertical Green Bar on the Left (Matching screenshot) */
.competition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px; /* Width of the green bar */
    height: 100%;
    /* background-color: #000000;  */
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.competition-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.competition-name {
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.competition-meta {
    font-size: 0.95rem;
    color: #555;
}

.status-badge {
    font-size: 0.75rem;
    text-transform: capitalize;
}



.competition-actions-icons {
    position: absolute;
    top: 15px; /* Position from top */
    right: 15px; /* Position from right */
    display: flex;
    gap: 8px; /* Space between the two icons */
}



/* Edit Icon Button Styling (Grey/Primary) */


/* Delete Icon Button Styling (Red/Danger) */
.delete-icon-button {
    border-color: #000000;
    color: #000000; 
}

.edit-competition-card {
    /* Change the background-color property */
    background-color: #F7F7F7; /* Example 1: Light Grey/Off-White (slightly more visible than pure white) */
   
    border-radius: 8px;
    padding: 20px 30px; 
    max-width: 1250px; 

    margin: 12px 10px;
    margin-left: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow-x: hidden !important;
    position: relative;
    
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.card-separator {
    border: 0;
    height: 1px;
    margin: 0 -30px 20px -30px;
}

.card-description {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #555;
}

.form-control.edit-competition {
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  box-shadow: none !important;
  padding: 3px !important;
}
