/* Modern Popup CSS */
:root {
  --primary-color: #3f51b5;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --text-color: #333;
  --text-light: #757575;
  --bg-light: #f5f5f5;
  --bg-dark: #263238;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.1);
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: var(--text-color);
  font-size: 13px;
  line-height: 1.4;
}

.app-container {
  display: flex;
  width: 360px;
  height: 500px;
  background-color: white;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Sidebar Styles */
.sidebar {
  width: 90px;
  background-color: var(--bg-dark);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logo {
  padding: 15px 0;
  text-align: center;
  font-size: 22px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.icon {
  font-style: normal;
  font-weight: bold;
}

.nav-menu {
  flex-grow: 1;
  padding: 15px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  margin-bottom: 5px;
}

.nav-item:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.nav-item.active {
  background-color: rgba(255,255,255,0.1);
  color: white;
  border-left: 3px solid var(--primary-color);
}

.nav-item i {
  margin-bottom: 5px;
  font-size: 16px;
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.app-status {
  font-size: 11px;
}

.status-indicator {
  display: flex;
  align-items: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success-color);
  margin-right: 5px;
}

/* Main Content Styles */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.page-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
}

.action-buttons {
  display: flex;
  gap: 5px;
}

.btn {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 12px;
  color: white;
}

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

.btn-success:hover {
  background-color: #3d8b40;
}

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

.btn-danger:hover {
  background-color: #d32f2f;
}

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

.btn-warning:hover {
  background-color: #e68900;
}

/* Content Sections */
.content-section {
  flex-grow: 1;
  padding: 10px 15px;
  overflow-y: auto;
  display: none; /* Default hidden */
}

/* Hide all sections on page load, but show the active one */
#divDashboard.active {
  display: block;
}

#divAyarlar.active {
  display: block;
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.card-header {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
}

.card-header h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}

.card-body {
  padding: 12px 15px;
}

/* Info Rows */
.info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  flex: 0 0 110px;
  font-weight: 500;
  color: var(--text-light);
}

.info-value {
  flex-grow: 1;
  color: var(--text-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Slider Styles */
.slider-container {
  padding: 5px 0 10px 0;
}

.ui-slider {
  height: 6px;
  background: #e0e0e0;
  border: none;
  border-radius: 3px;
  margin: 10px 0;
}

.ui-slider-handle {
  width: 14px !important;
  height: 14px !important;
  background: var(--primary-color) !important;
  border-radius: 50% !important;
  border: none !important;
  top: -5px !important;
  cursor: pointer !important;
}

.ui-slider-handle:focus {
  outline: none;
}

/* Log Styles */
.logs-container {
  max-height: 190px;
  overflow-y: auto;
}

.applogs p {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 12px;
}

.applogs p:last-child {
  border-bottom: none;
}

.applogs i {
  color: var(--text-light);
  font-size: 11px;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.error-badge {
  background-color: var(--danger-color);
  color: white;
  display: none;
}

/* Settings Feedback */
.settings-feedback {
  text-align: center;
  margin-top: 12px;
}

.success-message {
  color: var(--success-color);
  font-weight: 500;
  display: none;
}

/* Checkbox Styles */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
}

.checkbox-label {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-color);
}

.info-text {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
} 