/* User Modal Styles */
.user-modal, .user-edit-modal, .confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content.confirmation-content {
  max-width: 400px;
  border-radius: 0;
}



@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px 30px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.modal-header h3 {
  margin: 0;
  color: #343a40;
  font-size: 1.4em;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2em;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e9ecef;
  color: #343a40;
}

.modal-body {
  padding: 0;
}

/* Tab Styles */
.modal-tabs {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  background: #f8f9fa;
  margin: 0;
  padding: 20px 30px;
  gap: 15px;
  border-bottom: 1px solid #e9ecef;
}

.tab-button {
  padding: 12px 20px;
  border: 1px solid #495057;
  border-radius: 0;
  background: white;
  color: #495057;
  cursor: pointer;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: none;
}

.tab-button:hover {
  background: #2f2d2d !important;
  color: white !important;
  border-color: #2f2d2d !important;
  box-shadow: none !important;
  opacity: 0.8;
  transform: translateY(-1px) !important;
}

.tab-button.active {
  background: #2f2d2d;
  color: white;
  border-color: #2f2d2d;
  font-weight: 600;
  box-shadow: none !important;
  transform: none !important;
}

.tab-button.active:hover {
  background: #1a1818 !important;
  box-shadow: none !important;
  opacity: 0.8;
  transform: translateY(-1px) !important;
}

.tab-content {
  flex: 1;
  padding: 30px;
  background: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.user-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.info-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.info-section.full-width {
  margin-top: 25px;
}

.practice-session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.practice-session-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 16px;
}

.practice-session-item .session-header,
.practice-session-item .session-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #2f2d2d;
}

.practice-session-item .session-time,
.practice-session-item .session-sheets {
  font-weight: 600;
}

.practice-session-item .session-meta span {
  color: #495057;
}

.info-section h4 {
  margin: 0 0 15px 0;
  color: #343a40;
  font-size: 1.1em;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.info-row:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}

.info-row label {
  font-weight: 600;
  color: #495057;
  min-width: 120px;
  text-align: left;
}

.info-row span {
  color: #343a40;
  text-align: right;
  flex: 1;
}

.user-id, .google-id {
  font-family: monospace;
  font-size: 0.9em;
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  word-break: break-all;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 20px 30px 25px 30px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

/* Additional Tab Content Styles */
.subscription-actions, .project-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-active {
  color: #28a745;
  font-weight: 600;
}

.status-expired {
  color: #dc3545;
  font-weight: 600;
}

.stat-number {
  font-weight: 600;
  color: #2f2d2d;
}

.amount {
  font-weight: 600;
  color: #28a745;
  font-family: monospace;
}

/* Edit Form Styles */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.form-section h4 {
  margin: 0 0 15px 0;
  color: #343a40;
  font-size: 1.1em;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #495057;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size: 1em;
  background: white;
  transition: border-color 0.2s ease;
  box-shadow: none !important;
  outline: none !important;
}

.form-input:focus, .form-select:focus {
  outline: none !important;
  border-color: #2f2d2d;
  box-shadow: none !important;
}

.form-input:active, .form-select:active {
  outline: none !important;
  box-shadow: none !important;
}

.form-input[readonly] {
  background: #e9ecef;
  cursor: not-allowed;
}

.field-note {
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
  color: #6c757d;
  font-style: italic;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.checkbox-label input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

.checkbox-text {
  font-weight: 500;
  color: #495057;
}

.action-group {
  margin-bottom: 15px;
}

.action-group button {
  margin-bottom: 5px;
}

.info-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-family: 'Crimson Text', 'Georgia', serif;
  border-bottom: 1px solid #e9ecef;
}

.info-display:last-child {
  border-bottom: none;
}

.info-display label {
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.info-display span {
  color: #343a40;
}


.deletion-modal-body {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deletion-modal-body label {
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size: 0.95em;
  font-weight: 600;
  color: #2f2d2d;
}

.deletion-modal-body input,
.deletion-modal-body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size: 0.95em;
  box-sizing: border-box;
}

.deletion-modal-body textarea {
  min-height: 80px;
  resize: vertical;
}

.deletion-modal-body .modal-warning {
  background: #fef3f3;
  border-left: 4px solid #dc3545;
  padding: 10px 12px;
  font-size: 0.9em;
  line-height: 1.4;
  color: #721c24;
}
