
.staff-page-container {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
}

.staff-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.staff-header-container h2 {
  text-align: left;
  margin-bottom: 5px;
  color: var(--accent-color);
  font-size: 28px;
}
.staff-header-container p {
  text-align: left;
  margin-bottom: 0;
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.8;
}

.btn-add-staff {
  padding: 12px 20px;
  background-color: #2ecc71; 
  border: 1px solid #27ae60;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'CustomFont', sans-serif;
}
.btn-add-staff:hover {
  background-color: #27ae60;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
  transform: translateY(-2px);
}


.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.staff-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}
.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(44, 143, 255, 0.2);
}


.staff-card-image img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 15px;
  image-rendering: pixelated; 
  background-color: transparent;
  border: none;
}

.staff-card-name {
  font-size: 22px;
  font-weight: bold;
  color: var(--accent-color);
  margin: 0;
}

.staff-card-role {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.7;
  margin: 5px 0 15px 0;
  font-weight: bold;
}

.staff-card-description {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 20px;
  min-height: 60px; 
}


.staff-card-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}
.staff-card-socials a {
  color: var(--text-color);
  opacity: 0.6;
  font-size: 24px;
  transition: all 0.2s ease;
}
.staff-card-socials a:hover {
  opacity: 1;
  color: var(--accent-color);
  transform: scale(1.1);
}


.staff-card-admin-buttons {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  gap: 8px;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 4px;
}
.admin-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  width: 32px;
  height: 32px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.admin-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.admin-btn.btn-edit-staff:hover {
  color: #3498db;
}
.admin-btn.btn-delete-staff:hover {
  color: #e74c3c;
}



.staff-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.staff-modal-content {
    background-color: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(44, 143, 255, 0.3);
    padding: 20px 30px 30px 30px;
    color: var(--text-color);
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.staff-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}
.staff-modal-close:hover {
    color: #50c0ff;
    transform: rotate(90deg);
}


#staff-modal-form h2 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 25px;
}
.staff-modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}
.form-group label {
  font-size: 14px;
  font-weight: bold;
  opacity: 0.8;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-color);
  font-size: 14px;
  font-family: 'CustomFont', sans-serif;
  transition: all 0.2s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(44, 143, 255, 0.3);
}
.form-group textarea {
  resize: vertical;
}
#staff-modal-form h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.btn-save-staff {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background-color: #2ecc71;
  border: 1px solid #27ae60;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'CustomFont', sans-serif;
}
.btn-save-staff:hover {
  background-color: #27ae60;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}


.staff-modal-content::-webkit-scrollbar { width: 8px; }
.staff-modal-content::-webkit-scrollbar-track { background: rgba(31, 31, 31, 0.5); border-radius: 4px; }
.staff-modal-content::-webkit-scrollbar-thumb { background: rgba(44, 143, 255, 0.5); border-radius: 4px; }
.staff-modal-content::-webkit-scrollbar-thumb:hover { background: rgba(44, 143, 255, 0.7); }


.staff-form-color-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%; 
  height: 40px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.staff-form-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 5px;
}
.staff-form-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

.staff-form-color-input::-moz-color-swatch {
  border: none;
  border-radius: 5px;
}


.staff-card.staff-card-online {
    border-color: #2ecc71; 
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
    animation: sparkling-border-online 2s ease-in-out infinite;
}

@keyframes sparkling-border-online {
    0% {
        border-color: #2ecc71;
        box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
    }
    50% {
        border-color: #27ae60; 
        box-shadow: 0 0 25px rgba(46, 204, 113, 0.8);
    }
    100% {
        border-color: #2ecc71;
        box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
    }
}