/* ==========================================================================
   FG ESTUDIO CREATIVO - WordPress-Like Admin Panel Stylesheet
   Fiel a la interfaz visual de WP-Admin (Escritorio, Menús, Tablas y Formularios)
   ========================================================================== */

:root {
  --wp-dark: #1d2327;
  --wp-dark-hover: #2c3338;
  --wp-dark-active: #135e96;
  --wp-blue: #2271b1;
  --wp-blue-hover: #135e96;
  --wp-cyan: #00D2FF;
  --wp-bg: #f0f0f1;
  --wp-card-bg: #ffffff;
  --wp-text: #2c3338;
  --wp-text-light: #646970;
  --wp-border: #c3c4c7;
  --wp-success: #00a32a;
  --wp-danger: #d63638;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.wp-admin-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: var(--wp-bg);
  color: var(--wp-text);
  font-size: 13px;
  line-height: 1.4em;
  min-height: 100vh;
}

/* ==========================================================================
   WP LOGIN SCREEN
   ========================================================================== */
.wp-login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f0f1;
  padding: 2rem;
}

.wp-login-logo {
  margin-bottom: 25px;
  text-align: center;
}

.wp-login-logo img {
  max-height: 60px;
  max-width: 250px;
  object-fit: contain;
}

.wp-login-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 26px 24px 34px;
  border-radius: 4px;
}

.wp-login-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--wp-dark);
}

.wp-form-group {
  margin-bottom: 16px;
}

.wp-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d2327;
}

.wp-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #2c3338;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wp-input:focus {
  border-color: var(--wp-blue);
  box-shadow: 0 0 0 1px var(--wp-blue);
}

.wp-login-alert {
  background: #fff;
  border-left: 4px solid var(--wp-danger);
  box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 12px;
  display: none;
}

.wp-login-footer-links {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
}

.wp-login-footer-links a {
  color: #646970;
  text-decoration: none;
}

.wp-login-footer-links a:hover {
  color: var(--wp-blue);
}

/* ==========================================================================
   WP ADMIN LAYOUT (TOPBAR + SIDEBAR + CONTENT)
   ========================================================================== */
#wpadminbar {
  height: 32px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 600px;
  z-index: 99999;
  background: var(--wp-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #f0f0f1;
}

.wp-bar-left, .wp-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wp-bar-brand {
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.wp-bar-link {
  color: #c3c4c7;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wp-bar-link:hover {
  color: var(--wp-cyan);
}

/* WP Sidebar Menu */
#adminmenuwrap {
  position: fixed;
  top: 32px;
  bottom: 0;
  left: 0;
  width: 220px;
  background: var(--wp-dark);
  z-index: 9990;
  overflow-y: auto;
}

.adminmenu {
  list-style: none;
  padding: 8px 0;
}

.wp-menu-item {
  position: relative;
}

.wp-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #c3c4c7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.wp-menu-link:hover {
  background: var(--wp-dark-hover);
  color: var(--wp-cyan);
}

.wp-menu-item.active .wp-menu-link {
  background: var(--wp-blue);
  color: #ffffff;
  font-weight: 600;
}

.wp-menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* WP Body Content */
#wpbody {
  margin-left: 220px;
  margin-top: 32px;
  padding: 24px 30px;
}

.wp-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.wp-header-title h1 {
  font-size: 23px;
  font-weight: 400;
  color: #1d2327;
  line-height: 1.3em;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
}

.button-primary {
  background: var(--wp-blue);
  border-color: var(--wp-blue);
  color: #fff;
  font-weight: 600;
}

.button-primary:hover {
  background: var(--wp-blue-hover);
  border-color: var(--wp-blue-hover);
  color: #fff;
}

.button-secondary {
  color: var(--wp-blue);
  border-color: var(--wp-blue);
  background: #f6f7f7;
}

.button-secondary:hover {
  background: #f0f0f1;
  border-color: #0a4b78;
  color: #0a4b78;
}

.button-danger {
  color: var(--wp-danger);
  border-color: var(--wp-danger);
  background: #f6f7f7;
}

.button-danger:hover {
  background: var(--wp-danger);
  color: #fff;
}

/* Panels & Cards */
.wp-card {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.wp-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f1;
  color: #1d2327;
}

/* Table Style WP */
.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  border-radius: 4px;
  overflow: hidden;
}

.wp-list-table th, .wp-list-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f1;
  font-size: 13px;
}

.wp-list-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1d2327;
  border-bottom: 1px solid #c3c4c7;
}

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

.row-actions {
  font-size: 11px;
  padding-top: 3px;
  visibility: hidden;
}

.wp-list-table tr:hover .row-actions {
  visibility: visible;
}

.row-actions a {
  color: var(--wp-blue);
  text-decoration: none;
}

.row-actions a.delete {
  color: var(--wp-danger);
}

/* Form Tables */
.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table th {
  width: 200px;
  padding: 16px 10px 16px 0;
  vertical-align: top;
  text-align: left;
  font-weight: 600;
  color: #1d2327;
}

.form-table td {
  padding: 12px 10px;
}

.form-table input[type="text"],
.form-table textarea,
.form-table select {
  width: 100%;
  max-width: 580px;
  padding: 7px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}

.form-table textarea {
  min-height: 90px;
}

.description {
  font-size: 12px;
  color: #646970;
  margin-top: 4px;
}

/* Notice Alerts */
.notice {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-left-width: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  margin: 10px 0 20px;
  padding: 10px 12px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-success {
  border-left-color: var(--wp-success);
}

.notice-info {
  border-left-color: var(--wp-blue);
}

/* Grid layout for Dashboard */
.wp-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wp-stat-box {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wp-stat-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #f0f0f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--wp-dark);
}

.wp-stat-label {
  font-size: 12px;
  color: var(--wp-text-light);
}

/* Product thumb in table */
.wp-table-thumb {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #c3c4c7;
}
