/* 
 * F.L.O.W. System - Main Styles
 * Domain: pdavis2099.com
 * No authentication required
 */

:root {
  /* Color Variables */
  --primary-color: #00a8ff;
  --secondary-color: #ff00a8;
  --accent-color: #a800ff;
  --background-dark: #0a0e17;
  --background-medium: #141c2b;
  --background-light: #1e2738;
  --text-primary: #ffffff;
  --text-secondary: #a9b7d0;
  --text-muted: #64748b;
  --success-color: #00e676;
  --warning-color: #ffab00;
  --danger-color: #ff1744;
  --info-color: #00b0ff;
  
  /* Other Variables */
  --sidebar-width: 240px;
  --header-height: 60px;
  --border-radius: 8px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--background-medium);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 10;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.sidebar-header h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-links li {
  margin-bottom: 5px;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-secondary);
  transition: all var(--transition-speed) ease;
  border-left: 3px solid transparent;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-links li.active a {
  color: var(--primary-color);
  background-color: rgba(0, 168, 255, 0.05);
  border-left-color: var(--primary-color);
}

.nav-links i {
  margin-right: 10px;
  font-size: 18px;
}

.sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-muted);
}

.system-status {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.system-status.online .status-dot {
  background-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.domain, .version {
  margin-top: 4px;
}

/* Main Content */
.content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Bar */
.top-bar {
  height: var(--header-height);
  background-color: var(--background-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
}

.actions {
  display: flex;
  align-items: center;
}

.btn {
  background-color: var(--background-light);
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.btn i {
  margin-right: 6px;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background-color: rgba(0, 168, 255, 0.8);
}

.sync-btn, .new-btn {
  margin-right: 10px;
}

.user-menu {
  display: flex;
  align-items: center;
  margin-left: 16px;
  cursor: pointer;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: 8px;
}

/* Page Content */
.page-content {
  flex: 1;
  padding: 30px;
  background-color: var(--background-dark);
}

/* Sections */
.section {
  display: none;
}

.section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
}

/* Cards */
.card {
  background-color: var(--background-medium);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2, .card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

.row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Animations */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  background-color: var(--background-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

input:read-only {
  opacity: 0.7;
  cursor: not-allowed;
}

select[multiple] {
  height: auto;
  min-height: 100px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-dark);
  transition: .4s;
  border-radius: 34px;
}

.toggle-switch label:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + label {
  background-color: rgba(0, 168, 255, 0.2);
}

.toggle-switch input:checked + label:before {
  transform: translateX(26px);
  background-color: var(--primary-color);
}

/* Connection Status */
.connection-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.connection-status.connected {
  background-color: rgba(0, 230, 118, 0.1);
  color: var(--success-color);
}

.connection-status.disconnected {
  background-color: rgba(255, 23, 68, 0.1);
  color: var(--danger-color);
}

/* Icons (placeholders - would be replaced with actual icon fonts or SVGs) */
[class^="icon-"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease;
  }
  
  .content {
    margin-left: 0;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .row {
    grid-template-columns: 1fr;
  }
}