body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  
}


/* Drawer navigation styles */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #333;
    color: #fff;
    transform: translateX(-250px);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .drawer.open {
    transform: translateX(0);
  }
  
  .drawer nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  
  .drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .drawer li {
    margin: 10px 0;
  }
  
  .drawer a {
    color: #fff;
    text-decoration: none;
  }
  
  .drawer a:hover {
    text-decoration: underline;
  }
  
  .drawer button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
  }
  
  .drawer button:hover {
    background-color: #0056b3;
  }
  
  /* Drawer close button */
  .drawer-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Overlay styles */
  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
  }
  
  /* Main content styles */
  #mainContent {
    padding: 20px;
  }


  .form-container {
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    margin-top: 20px;
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.form-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input {
    margin-bottom: 20px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-container button {
    padding: 10px 15px;
    background-color: #0000ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #00008b;
}

  
  /* Drawer toggle button */
  .drawer-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
  }
  
  .drawer-toggle-btn:hover {
    background-color: #0056b3;
  }
  
h1, h2 {
    color: #444;
    text-align: center;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.button-group {
    text-align: center;
    margin-top: 20px;
}

.button-group button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
}
.button-group .btn {
  width: 30%;
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 4px;
  cursor: pointer;
}
.button-group button:hover {
    background-color: #0056b3;
}

#urlContainer, #editUrlContainer {
    margin-top: 20px;
}

#urlList, #editUrlList {
    margin-bottom: 10px;
}

.url-container {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #00b3ff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.url-container button {
    background-color: #dc3545;
}

.url-container button:hover {
    background-color: #c82333;
}

.form-group input[type="button"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.form-group input[type="button"]:hover {
    background-color: #218838;
}

#loginDiv {
    text-align: center;
}

#loginDiv input {

    margin: 10px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#loginDiv button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px;
}

#loginDiv button:hover {
    background-color: #0056b3;
}


/* Container for category checkboxes */
#categoryContainer {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 20px;
}


/* Styling for individual checkbox labels */
#categoryContainer label {
display: flex;
align-items: center;
font-size: 14px;
margin-bottom: 10px;
cursor: pointer;
transition: color 0.3s;
}

#categoryContainer #check {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
/* Checkbox appearance */
#categoryContainer input[type="checkbox"] {
margin-right: 10px;
accent-color: #007bff; /* Change this color to match your theme */
}

/* Label hover effect */
#categoryContainer label:hover {
color: #0056b3; /* Change this color to match your theme */
}

.spinner-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
display: none; /* Hidden by default */
}

.spinner {
border: 16px solid #f3f3f3;
border-top: 16px solid #3498db;
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* 
for live_football listview */

.matches-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr); /* Adjusts to show 4 items per row */
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
  height: auto;
}

.match-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #363636;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover; /* Ensures the image covers the container without stretching */
}

.match-info {
  flex-grow: 1;
  text-align: center;
}

.match-time {
  font-size: 14px;
}

.live-icon {
  color: red;
  font-weight: bold;
}

.vs-text {
  color: white;
  font-weight: bold;
}

.match-details {
  text-align: center;
  margin-top: 10px;
}

.match-details h3 {
  margin: 5px 0;
}

.match-details p {
  margin: 0;
}

.match-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.match-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.edit-btn {
  width: 25%;
  background-color: #4CAF50;
  color: white;
}

.delete-btn {
  width: 25%;
  background-color: #f44336;
  color: white;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
  .matches-container {
    grid-template-columns: repeat(3, 1fr); /* 3 items per row for smaller screens */
  }
}

@media (max-width: 900px) {
  .matches-container {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row for tablets */
  }
}

@media (max-width: 600px) {
  .matches-container {
    grid-template-columns: 1fr; /* 1 item per row for mobile screens */
  }
}
