/**
 * MTips5s Photoshop Lite - Typography Pro Styling
 * Photoshop CC Character & Paragraph panels
 */

.typo-pro-modal {
  position: fixed;
  top: 60px;
  right: 320px;
  width: 320px;
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #cccccc;
  user-select: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header & Tabs */
.typo-pro-header {
  height: 34px;
  background: #1e1e1e;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.typo-pro-tabs {
  display: flex;
  height: 100%;
}

.typo-tab-btn {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 11px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.typo-tab-btn:hover {
  color: #ffffff;
}

.typo-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: #252526;
}

.typo-close-btn {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}

.typo-close-btn:hover {
  background: #c53030;
  color: #ffffff;
}

/* Body Content */
.typo-pro-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
}

.typo-tab-content {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.typo-tab-content.active {
  display: flex;
}

/* Form Controls Grid */
.typo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.typo-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.typo-field-label {
  font-size: 10px;
  color: #999999;
  display: flex;
  align-items: center;
  gap: 4px;
}

.typo-input, .typo-select {
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 3px;
  color: #ffffff;
  padding: 4px 6px;
  font-size: 11px;
  outline: none;
}

.typo-input:focus, .typo-select:focus {
  border-color: #007acc;
}

/* Faux Buttons Row */
.typo-faux-row {
  display: flex;
  background: #1e1e1e;
  border: 1px solid #383838;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.typo-faux-btn {
  flex: 1;
  height: 26px;
  background: transparent;
  border: none;
  border-right: 1px solid #333333;
  color: #888888;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.typo-faux-btn:last-child {
  border-right: none;
}

.typo-faux-btn:hover {
  background: #2a2a2a;
  color: #ffffff;
}

.typo-faux-btn.active {
  background: #094771;
  color: #38bdf8;
}

/* Paragraph Alignment Row */
.typo-align-row {
  display: flex;
  background: #1e1e1e;
  border: 1px solid #383838;
  border-radius: 4px;
  overflow: hidden;
}

.typo-align-btn {
  flex: 1;
  height: 28px;
  background: transparent;
  border: none;
  border-right: 1px solid #333333;
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.typo-align-btn:last-child {
  border-right: none;
}

.typo-align-btn:hover {
  background: #2a2a2a;
  color: #ffffff;
}

.typo-align-btn.active {
  background: #094771;
  color: #38bdf8;
}

/* Live Preview Box */
.typo-preview-card {
  background: #141414;
  border: 1px solid #333333;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  overflow: hidden;
}

.typo-preview-canvas {
  display: block;
}

/* Presets & Actions */
.typo-footer {
  background: #1e1e1e;
  border-top: 1px solid #333333;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.typo-apply-btn {
  padding: 4px 14px;
  background: #007acc;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.typo-apply-btn:hover {
  background: #0062a3;
}
