/*
Theme Name: Arzo
Theme URI: #
Author: Internal
Author URI: #
Description: A minimal web application UI theme for internal tools. Single-page, role-based, audit-aware. Not a website, not a CMS.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arzo
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4

This theme is designed as a web application shell, not a publishing platform.
Features:
- Single page template only
- Role-based rendering with login redirect
- No menus, sidebars, widgets, or comments
- Audit-aware UI with record IDs, timestamps, and user info
- Search engine exclusion (robots.txt, meta robots, no sitemap)
- REST API restrictions for unauthenticated users
- Neutral styling with minimal assets
- Environment-specific indicators (DEV/UAT/PROD)
*/

/* ============================================
   RESET AND BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f9f9f9;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.arzo-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.arzo-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arzo-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.arzo-header-tools {
  display: flex;
  gap: 16px;
  align-items: center;
}

.arzo-environment-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.arzo-environment-badge.dev {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.arzo-environment-badge.uat {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #17a2b8;
}

.arzo-environment-badge.prod {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.arzo-main {
  flex: 1;
  padding: 20px;
}

.arzo-page-content {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============================================
   NEUTRAL UI COMPONENTS
   ============================================ */

/* Audit Info Panel */
.arzo-audit-info {
  background: #f5f5f5;
  border-left: 3px solid #0073aa;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

.arzo-audit-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.arzo-audit-label {
  font-weight: 600;
  color: #333;
  min-width: 140px;
}

.arzo-audit-value {
  color: #666;
  font-family: 'Courier New', monospace;
}

/* Tabs */
.arzo-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
  gap: 8px;
}

.arzo-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.arzo-tab:hover {
  color: #333;
}

.arzo-tab.active {
  color: #0073aa;
  border-bottom-color: #0073aa;
}

/* Steps */
.arzo-steps {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 12px;
}

.arzo-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
}

.arzo-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.arzo-step.active {
  color: #333;
}

.arzo-step.active .arzo-step-number {
  background: #0073aa;
  color: #fff;
}

.arzo-step.completed {
  color: #28a745;
}

.arzo-step.completed .arzo-step-number {
  background: #28a745;
  color: #fff;
}

.arzo-step-divider {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
  max-width: 60px;
}

/* Breadcrumb (State-based) */
.arzo-breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}

.arzo-breadcrumb-separator {
  margin: 0 8px;
  color: #ccc;
}

/* Alerts */
.arzo-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid transparent;
}

.arzo-alert.info {
  background: #e7f3ff;
  border-color: #b8daff;
  color: #004085;
}

.arzo-alert.success {
  background: #e6ffed;
  border-color: #c3e6cb;
  color: #155724;
}

.arzo-alert.warning {
  background: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.arzo-alert.danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Status Badges */
.arzo-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.arzo-status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.arzo-status-badge.approved,
.arzo-status-badge.publish {
  background: #e6ffed;
  color: #155724;
}

.arzo-status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}

.arzo-status-badge.draft {
  background: #f0f0f0;
  color: #666;
}

/* Tables */
.arzo-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.arzo-table th,
.arzo-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.arzo-table th {
  background: #fcfcfc;
  font-weight: 600;
  color: #333;
}

/* Buttons */
.arzo-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 13px;
  text-align: center;
}

.arzo-btn.primary {
  background: #0073aa;
  color: #fff;
}

.arzo-btn.secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .arzo-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .arzo-header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .arzo-main {
    padding: 12px;
  }

  .arzo-page-content {
    padding: 12px;
  }

  .arzo-tabs {
    flex-wrap: wrap;
  }

  .arzo-steps {
    flex-wrap: wrap;
  }

  .arzo-step-divider {
    display: none;
  }

  .arzo-audit-row {
    flex-direction: column;
  }
}