/* ============================================
   Easy PHP Settings - Professional Styles
   ============================================ */

/* Main switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: #2271b1;
}

input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.25);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Tooltips & Help Icons
   ============================================ */
.dashicons-editor-help {
  font-size: 18px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  color: #646970;
  cursor: help;
  transition: all 0.2s ease;
}

.dashicons-editor-help:hover {
  color: #2271b1 !important;
  transform: scale(1.1);
}

/* ============================================
   Preset Selector
   ============================================ */
.easy-php-settings-preset-box {
  background: linear-gradient(135deg, #f0f6fc 0%, #e8f4f8 100%);
  border: 1px solid #c3e4ed;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.easy-php-settings-preset-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #1d2327;
  font-size: 16px;
  font-weight: 600;
}

#easy_php_settings_preset {
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #8c8f94;
  min-width: 300px;
  transition: all 0.2s ease;
}

#easy_php_settings_preset:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

/* ============================================
   Button Styles
   ============================================ */
.button-danger {
  background: #d63638 !important;
  border-color: #d63638 !important;
  color: #fff !important;
  text-shadow: none;
  box-shadow: 0 1px 0 #b32d2e;
}

.button-danger:hover,
.button-danger:focus {
  background: #b32d2e !important;
  border-color: #b32d2e !important;
  box-shadow: 0 1px 0 #8a2424;
}

.button-primary {
  box-shadow: 0 1px 0 #135e96;
}

.button-primary:hover,
.button-primary:focus {
  box-shadow: 0 1px 0 #0a4b78;
}

/* ============================================
   Configuration Boxes
   ============================================ */
.easy-php-settings-config-box {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.easy-php-settings-config-box h3 {
  margin-top: 0;
  color: #1d2327;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f1;
  padding-bottom: 10px;
}

#easy_php_settings_custom_php_ini {
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
  background: #f6f7f7;
}

#easy_php_settings_custom_php_ini:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
  background: #ffffff;
}

/* ============================================
   Extensions Tab
   ============================================ */
#extensions-tab .notice {
  border-left-width: 4px;
  border-radius: 4px;
}

#extensions-tab h4 {
  color: #1d2327;
  font-size: 14px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f6f7f7;
  border-radius: 4px;
}

/* ============================================
   History Tab
   ============================================ */
details {
  cursor: pointer;
  margin: 4px 0;
}

details summary {
  outline: none;
  color: #2271b1;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

details summary:hover {
  background-color: #f0f6fc;
}

details[open] summary {
  margin-bottom: 8px;
}

/* ============================================
   Tools Tab
   ============================================ */
.easy-php-settings-tool-section {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.easy-php-settings-tool-section h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #1d2327;
  font-size: 15px;
  font-weight: 600;
}

.easy-php-settings-warning-box {
  background: #fcf8e3;
  border: 1px solid #f0e68c;
  border-left: 4px solid #f0ad4e;
}

/* ============================================
   Status Indicators
   ============================================ */
.status-ok {
  color: #00a32a;
  font-weight: 600;
}

.status-warning {
  color: #dba617;
  font-weight: 600;
}

.status-error {
  color: #d63638;
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.ok {
  background: #d4edda;
  color: #155724;
}

.status-badge.warning {
  background: #fff3cd;
  color: #856404;
}

.status-badge.error {
  background: #f8d7da;
  color: #721c24;
}

/* ============================================
   Form Tables
   ============================================ */
.form-table th {
  vertical-align: top;
  padding-top: 15px;
  font-weight: 600;
  color: #1d2327;
}

.form-table td {
  vertical-align: top;
}

.form-table input[type="text"] {
  border-radius: 4px;
}

.form-table .description {
  color: #646970;
  font-size: 13px;
  margin-top: 5px;
}

/* ============================================
   Search Inputs
   ============================================ */
input[type="text"]#php-settings-search,
input[type="text"]#extensions-search {
  border: 1px solid #8c8f94;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

input[type="text"]#php-settings-search:focus,
input[type="text"]#extensions-search:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

/* ============================================
   Tables
   ============================================ */
.wp-list-table {
  border-radius: 4px;
  overflow: hidden;
}

.wp-list-table th {
  font-weight: 600;
  color: #1d2327;
}

.wp-list-table tbody tr:hover {
  background-color: #f6f7f7;
}

/* ============================================
   Tab Navigation
   ============================================ */
.nav-tab-wrapper {
  margin-bottom: 20px;
  border-bottom: 1px solid #c3c4c7;
}

.nav-tab {
  transition: all 0.2s ease;
}

.nav-tab:hover {
  background-color: #f6f7f7;
}

.nav-tab-active {
  font-weight: 600;
}

/* ============================================
   Info Boxes
   ============================================ */
.easy-php-info-box {
  background: #f0f6fc;
  border: 1px solid #c3e4ed;
  border-left: 4px solid #2271b1;
  border-radius: 4px;
  padding: 15px;
  margin: 15px 0;
}

.easy-php-info-box p {
  margin: 0;
  color: #1d2327;
}

.easy-php-success-box {
  background: #eaf4ea;
  border: 1px solid #c3e4c3;
  border-left: 4px solid #00a32a;
}

.easy-php-warning-box {
  background: #fcf8e3;
  border: 1px solid #f0e68c;
  border-left: 4px solid #f0ad4e;
}

.easy-php-error-box {
  background: #f8d7da;
  border: 1px solid #f1b4b7;
  border-left: 4px solid #d63638;
}

/* ============================================
   Loading States & Animations
   ============================================ */
.easy-php-loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* Button loading state */
button[disabled],
input[type="submit"][disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 782px) {
  #easy_php_settings_preset {
    max-width: 100% !important;
    min-width: 100%;
  }
  
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }
  
  .form-table th {
    padding-bottom: 0;
  }
  
  .easy-php-settings-preset-box,
  .easy-php-settings-config-box,
  .easy-php-settings-tool-section {
    padding: 15px;
  }
} 