/* Plugin styles */
:root {
  --ip-bg: #f1f1f3;
  --ip-primary: #0c64a0;
  --ip-accent: #005a87;
  --ip-card: #ffffff;
  --ip-aside: #394459;
  --ip-hover: #45546d;
  --ip-active: #293142;
  --ip-muted: #9aa0a6;
  --ip-border: #e0e0e0;
}

/* Modal Styles */
.ip-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important;
  display: none;
}

.ip-modal-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
}

.ip-modal-wrapper {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90% !important;
  max-width: 800px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.ip-modal-card {
  background: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
}

.ip-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--ip-border);
  background: var(--ip-aside);
  color: white;
}

.ip-modal-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.ip-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.ip-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ip-modal-body {
  padding: 20px;
}

.ip-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--ip-border);
  margin-top: 10px;
  border-radius: 8px;
  background: #f8f9fa;
}

/* Form Styles */
.ip-form {
  width: 100%;
}

.ip-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.ip-group {
  flex: 1;
  min-width: 200px;
}

.ip-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.ip-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ip-border);
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.ip-input:focus {
  outline: none;
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 2px rgba(12, 100, 160, 0.2);
}

.ip-title {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ip-border);
  color: var(--ip-aside);
}

.ip-card--main {
  background: var(--ip-card);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ip-card--profile {
  border: 1px solid var(--ip-border);
}

.ip-cart-display {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .ip-cart-display {
    flex-direction: row;
  }

  .ip-group {
    min-width: 0;
  }
}

.flex{
  display: flex;
  gap: 8px;
}

/* Global font settings for gym-portal plugin */
@font-face {
  font-family: 'YekanBakhFaNum-Regular';
  src: url('../fonts/woff2/YekanBakhFaNum-Regular.woff2') format('woff2'),
       url('../fonts/woff/YekanBakhFaNum-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'YekanBakhFaNum-Regular' !important;
}

/* Global font class for all elements */
.gym-portal-font, 
.gym-portal-font *,
.ip-dashboard,
.ip-dashboard *,
.ip-sidebar,
.ip-sidebar *,
.ip-card,
.ip-card *,
.ip-btn,
.ip-btn *,
.ip-input,
.ip-input *,
.ip-title,
.ip-title *,
.ip-modal,
.ip-modal *,
.ip-form,
.ip-form *,
.ip-group,
.ip-group *,
.ip-label,
.ip-label *,
button,
button *,
input,
input *,
select,
select *,
textarea,
textarea *,
h1, h2, h3, h4, h5, h6,
p, span, div, a,
label, legend,
th, td {
  font-family: 'YekanBakhFaNum-Regular', 'Vazirmatn', 'Tahoma', sans-serif !important;
}