/* Voice Settings - Page specific styles */

.wrap { margin-right: 20px; }

.page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 20px 0; border-bottom: 2px solid #008080; }
.page-header h1 { margin: 0; color: #2c3e50; font-size: 1.8em; font-weight: 600; }

.voice-stats-section { margin-bottom: 32px; }

.section-title { margin: 0 0 20px 0; padding-bottom: 12px; border-bottom: 2px solid #008080; color: #2c3e50; font-size: 1.4em; font-weight: 600; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: linear-gradient(135deg, #20b2aa, #008080); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 20px; }
.stats-card { background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%); border-radius: 12px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; border: 1px solid #e8f4f4; position: relative; overflow: hidden; }
.stats-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(135deg, #008080, #20b2aa); }
.stats-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,128,128,0.15); }
.card-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.stats-card h3 { margin: 0 0 16px 0; color: #2c3e50; font-size: 16px; font-weight: 600; }
.card-value { font-size: 32px; font-weight: 700; color: #008080; margin-bottom: 8px; line-height: 1; }
.card-subtitle { font-size: 13px; color: #7f8c8d; font-weight: 500; }

.settings-section { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #e8f4f4; }
.section-header { background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%); padding: 24px; border-bottom: 1px solid #e8f4f4; }
.section-header h2 { margin: 0 0 8px 0; color: #2c3e50; font-size: 20px; font-weight: 600; }
.section-description { margin: 0; color: #7f8c8d; font-size: 14px; }
.settings-container { padding: 24px; }
.settings-grid { display: grid; gap: 20px; margin-bottom: 24px; }

.setting-card { background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%); border-radius: 12px; padding: 24px; border: 2px solid #e8f4f4; transition: all 0.3s ease; position: relative; overflow: hidden; }
.setting-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(135deg, #008080, #20b2aa); opacity: 0; transition: opacity 0.3s ease; }
.setting-card:hover { box-shadow: 0 8px 25px rgba(0,128,128,0.12); border-color: #20b2aa; transform: translateY(-2px); }
.setting-card:hover::before { opacity: 1; }
.setting-header h3 { margin: 0 0 20px 0; color: #2c3e50; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.setting-content { margin: 0; }

.setting-input, .setting-select { width: 100%; max-width: 400px; padding: 10px 14px; border: 2px solid #e8f4f4; border-radius: 8px; font-size: 14px; background: #ffffff; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.setting-input:focus, .setting-select:focus { border-color: #008080; box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1), 0 2px 8px rgba(0,0,0,0.08); outline: none; background: #fcfefe; }
.setting-input:hover, .setting-select:hover { border-color: #20b2aa; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

.setting-description { margin: 12px 0 0 0; color: #7f8c8d; font-size: 13px; line-height: 1.5; padding: 12px; background: rgba(0, 128, 128, 0.03); border-left: 3px solid #20b2aa; border-radius: 0 6px 6px 0; font-style: italic; }
.setting-description a { color: #008080; text-decoration: none; font-weight: 500; }
.setting-description a:hover { color: #006666; text-decoration: underline; }
.setting-description code { background: rgba(0, 128, 128, 0.1); color: #006666; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 500; }

.icon-input-container { display: flex; gap: 12px; align-items: stretch; margin-bottom: 16px; flex-wrap: wrap; }
.icon-input-container .setting-input { flex: 1; min-width: 250px; }
.icon-preview { margin: 16px 0; padding: 20px; background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%); border: 2px dashed #20b2aa; border-radius: 12px; text-align: center; transition: all 0.3s ease; }
.icon-preview:hover { border-color: #008080; background: linear-gradient(135deg, #f0fffe 0%, #f8fffe 100%); box-shadow: 0 4px 12px rgba(0, 128, 128, 0.1); }
.icon-preview img { max-width: 50px; max-height: 50px; border-radius: 8px; background: #fff; border: 2px solid #e8f4f4; padding: 8px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.icon-preview img:hover { border-color: #20b2aa; transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.settings-footer { border-top: 1px solid #e8f4f4; padding-top: 24px; text-align: right; }

/* Buttons on this page (secondary already styled globally, keep variants if unique) */
.wp-flow-button-primary, .button-primary { background: linear-gradient(135deg, #008080 0%, #20b2aa 100%) !important; color: white !important; border: none !important; border-radius: 6px !important; padding: 10px 18px !important; font-weight: 500 !important; box-shadow: 0 2px 4px rgba(0, 128, 128, 0.2) !important; transition: all 0.3s ease !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; text-decoration: none !important; }
.wp-flow-button-primary:hover, .button-primary:hover { background: linear-gradient(135deg, #006666 0%, #008080 100%) !important; transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3) !important; }
.button-secondary { background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%) !important; color: #008080 !important; border: 2px solid #008080 !important; border-radius: 8px !important; padding: 10px 18px !important; font-weight: 500 !important; transition: all 0.3s ease !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; text-decoration: none !important; box-shadow: 0 2px 4px rgba(0, 128, 128, 0.1) !important; cursor: pointer !important; }
.button-secondary:hover, .button-secondary:focus { background: linear-gradient(135deg, #008080 0%, #20b2aa 100%) !important; color: white !important; border-color: #006666 !important; transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(0, 128, 128, 0.25) !important; }
.toggle-password { background: linear-gradient(135deg, #e8f4f4 0%, #f0f8f8 100%) !important; color: #008080 !important; border: 1px solid #20b2aa !important; border-radius: 6px !important; padding: 8px 14px !important; font-size: 12px !important; font-weight: 500 !important; margin-left: 8px !important; transition: all 0.3s ease !important; cursor: pointer !important; }
.toggle-password:hover { background: linear-gradient(135deg, #20b2aa 0%, #008080 100%) !important; color: white !important; transform: translateY(-1px) !important; box-shadow: 0 3px 8px rgba(0, 128, 128, 0.2) !important; }

/* Page-specific improvements */
.voice-engine-indicator { display: inline-block; padding: 4px 12px; background: linear-gradient(135deg, #008080, #20b2aa); color: white; border-radius: 12px; font-size: 11px; font-weight: 600; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.test-voice-container { margin-top: 12px; padding: 12px; background: rgba(32, 178, 170, 0.05); border-radius: 8px; border: 1px solid rgba(32, 178, 170, 0.2); display: flex; align-items: center; gap: 12px; }
.test-voice-note { font-size: 12px; color: #7f8c8d; font-style: italic; }
.test-result { padding: 10px; border-radius: 4px; font-size: 13px; line-height: 1.4; }
.test-result.success { background: rgba(39, 174, 96, 0.1); color: #27ae60; border: 1px solid rgba(39, 174, 96, 0.3); }
.test-result.error { background: rgba(231, 76, 60, 0.1); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.field-group { margin-bottom: 20px; }
.field-group:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
  .icon-input-container { flex-direction: column; align-items: stretch; }
  .icon-input-container .setting-input { min-width: auto; width: 100%; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .settings-container { padding: 16px; }
  .section-header { padding: 16px; }
  .card-value { font-size: 24px; }
  .setting-card { padding: 16px; }
  .setting-header h3 { font-size: 16px; }
  .icon-input-container { gap: 8px; }
  .toggle-password { margin-left: 0; margin-top: 8px; width: 100%; justify-content: center; }
  .test-voice-container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .page-header h1 { font-size: 1.4em; }
  .stats-card { padding: 16px; }
  .card-value { font-size: 20px; }
  .setting-input, .setting-select { max-width: 100%; }
}
