/* custom-style.css */

/* Global Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
/*Page header*/
/* Header Styles */
.management-header {
    height: 250px;
    background-image: url(https://3bgolf.ca/wp-content/uploads/2024/03/mk-s-WHf1wtNMMLU-unsplash-1.jpg);
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}
.management-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}
.management-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color:white;
}
.breadcrumb {
    font-size: 24px;
}
.breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.breadcrumb .separator {
    color: #4caf50;
    margin: 0 5px;
}
/* Form styles */
form {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form label {
    display: block;
    margin-bottom: 8px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
   
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

/*table tr:nth-child(even) {*/
/*    background-color: #f9f9f9;*/
/*}*/

table tr:hover {
    background-color: #f1f1f1;
}

/* Custom styles for appointment search columns*/
#search-appointments, #search-memberships {
    padding: 10px 10px 0px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Add some space between columns */
}

#search-appointments input[type="text"], #search-appointments input[type="date"] {
    flex: 1 1 250px; /* Flex-grow, flex-shrink, and base-width for adaptive sizing */
    max-width: 28%; /* Ensure maximum width for large screens */
    margin: 6px 0; /* Add some vertical space between inputs */
    padding: 10px; /* Add some padding inside the input */
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
     height:50px;
}

#search-appointments select{
    flex: 1 1 250px; /* Flex-grow, flex-shrink, and base-width for adaptive sizing */
    max-width: 28%; /* Ensure maximum width for large screens */
    margin: 6px 0; /* Add some vertical space between inputs */
    padding: 10px; /* Add some padding inside the input */
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
     height:50px;
}

#search-appointments input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

#search-appointments button{
    width: 13%;
    min-width: 120px; /* Ensure minimum width for small screens */
    font-size: 16px; /* Slightly decrease the font size for better appearance */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    height:50px;
    margin: auto;
    margin-right: 0;
    padding: initial;
}
  

#search-appointments button:hover, #search-memberships button:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Media query for smaller screens */
@media (max-width: 768px) {
    #search-appointments input[type="text"] , #search-memberships input[type="text"]{
        max-width: 100%; /* Allow full width for smaller screens */
    }

    #search-appointments button,   #search-memberships button{
        width: 100%; /* Allow full width for smaller screens */
    }
}

#search {
    padding: 10px 10px 0px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Add some space between columns */
}

#search input[type="text"], #search input[type="date"]{
    flex: 1 1 250px; /* Flex-grow, flex-shrink, and base-width for adaptive sizing */
    max-width: 28%; /* Ensure maximum width for large screens */
    margin: 6px 0; /* Add some vertical space between inputs */
    padding: 10px; /* Add some padding inside the input */
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
     height:50px;
}

#search select{
    flex: 1 1 250px; /* Flex-grow, flex-shrink, and base-width for adaptive sizing */
    max-width: 28%; /* Ensure maximum width for large screens */
    margin: 6px 0; /* Add some vertical space between inputs */
    padding: 10px; /* Add some padding inside the input */
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
     height:50px;
}

#search input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

#search button{
    width: 13%;
    min-width: 120px; /* Ensure minimum width for small screens */
    font-size: 16px; /* Slightly decrease the font size for better appearance */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    height:50px;
    margin: auto;
    margin-right: 0;
    padding: initial;
}
  
.search_button{
    width: 13%;
    min-width: 120px; /* Ensure minimum width for small screens */
    font-size: 16px; /* Slightly decrease the font size for better appearance */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    height:50px;
    margin: auto;
    margin-right: 0;
    padding: initial;
}

#search button:hover{
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* Sort indicator styles */

.sort-indicator{
    cursor: pointer; /* Change cursor to pointer on hover */
    position: relative; /* Ensure relative positioning for the sort indicator */
}
#sort-date-indicator {
    color: black; /* Change the sort indicator text color to black */
    margin-left: 5px; /* Add some spacing between the text and the indicator */
}

#membership-id-header {
    cursor: pointer; /* Change cursor to pointer on hover */
    position: relative; /* Ensure relative positioning for the sort indicator */
}

#sort-id-indicator {
    color: black; /* Change the sort indicator text color to black */
    margin-left: 5px; /* Add some spacing between the text and the indicator */
}


#appointments,
#memberships {
    width: 100%;
    overflow-x: auto; /* Allow horizontal scrolling for the table */
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap; /* Prevent text from wrapping */
}

th {
    background-color: #f2f2f2;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1;
}

/* pagination styles */
.pagination-controls {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination-controls button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.pagination-controls button.active {
  background-color: #388E3C;
  border: 2px solid #2E7D32;
  transform: scale(1.1);
}

.pagination-controls button:hover {
  background-color: #45a049;
}

.pagination-controls span {
  padding: 10px 15px;
  margin: 0 5px;
  font-size: 14px;
  color: #555;
}

/* Status dropdown */
.status-dropdown {
  font-size: 16px;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  margin-right: 5px;
  transition: background-color 0.3s, border-color 0.3s;
}

.status-dropdown:hover {
  background-color: #e9e9e9;
  border-color: #bbb;
}

#btn-custom {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s;  
}

/* Update  button */
.edit-button, .update-status-button, .update-membership-button, .edit-user-button, .edit-customer-button, .edit-announcement-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.edit-button:hover, .update-status-button:hover, .update-membership-button:hover, .edit-user-button:hover, .edit-customer-button:hover ,.edit-announcement-button:hover {
  background-color: #45a049;
}
.copy-button {
  background-color: #1E90FF;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}
.copy-button:hover{
 background-color: #45a049;
}
.disabled-button {
  background-color: #989898;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}
.disabled-button:hover{
    cursor:default;
    background-color: #989898;
}
/* Delete  button */
.delete-button, .delete-appointment-button, .delete-membership-button, .delete-user-button, .delete-customer-button, .delete-announcement-button {
  background-color: red;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.delete-button:hover, .delete-appointment-button:hover, .delete-membership-button:hover ,.delete-user-button:hover, .delete-customer-button:hover, .delete-announcement-button:hover{
  background-color: black;
}


/* Membership Form */
#membership-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

#membership_form {
    display: flex;
    flex-direction: column;
}

#membership_form label {
    margin-bottom: 5px;
    font-weight: bold;
}


#membership_form input[type="text"],
#membership_form input[type="email"],
#membership_form input[type="tel"],
#membership_form input[type="url"],
#membership_form input[type="number"],
#membership_form input[type="password"],
#membership_form select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

#membership_form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#membership_form input[type="submit"]:hover {
    background-color: #45a049;
}



/* top container content */
#membership-form-top-container {
    text-align: center;
    margin-bottom: 20px;
}



#membership-form-top-container p {
    margin-bottom: 20px;
}
/* Grouped striping: rows 1–2 one color, 3–4 another, 5–6 same as 1–2, etc. */
#memberships-table tbody tr:nth-child(4n+1),
#memberships-table tbody tr:nth-child(4n+2) {
  background-color: #e0e0e0;  /* darker grey */ 
}

#memberships-table tbody tr:nth-child(4n+3),
#memberships-table tbody tr:nth-child(4n+4) {
  background-color: #ffffff;  /* white */
}
.custom-button {
    width: 13%;
    min-width: 120px; /* Ensure minimum width for small screens */
    font-size: 16px; /* Slightly decrease the font size for better appearance */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    height:50px;
    margin: auto;
    margin-right: 0;
    padding: initial;
}

.custom-button2 {
    width: 8%;
    min-width: 120px; /* Ensure minimum width for small screens */
    font-size: 16px; /* Slightly decrease the font size for better appearance */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    height:50px;
    margin: auto;
    margin-right: 0;
    padding: initial;
}
/**For Modal***/
/* Modal Styles */
/* Use Bootstrap’s built-in classes along with custom styling */

/* Make sure the modal is vertically centered */
.modal.modal-custom .modal-dialog {
  background-color: #daf3e1;
}

/* Custom modal content styling */
.modal.modal-custom .modal-content {
  background-color: #daf3e1; /* Your custom background */
  border-radius: 15px;
  width: 100%;
  max-width: 800px;
}
.modal-custom .modal-content {
  padding: 10px; /* Adjust padding as needed */
}
.modal-custom h5 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.modal-custom .form-control {
  margin-bottom: 8px;
}
  /* Custom styles for smaller form controls */
  .custom-small-input {
    height: 30px;
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
  }
  .custom-small-textarea {
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
    /* Optionally, adjust the line-height to reduce overall height */
    line-height: 1.2;
    height:50px;
  }

/*Datatable*/
/* Pagination button default state */
.page-item.active .page-link {
    background-color: #4CAF50 !important; /* green background */
    color: white !important;
    border: 1px solid #4CAF50 !important;
    border-radius: 4px;
    margin: 0 2px;
}

/* Hover state */
.page-item.active .page-link:hover {
    background-color: #45a049 !important; /* darker green on hover */
    color: white !important;
}

/* Current page (active) button */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #2e7d32 !important; /* even darker green for current page */
    color: white !important;
}