/* Remote Panel - Modern UI CSS
  Using a dynamic dark theme, glassmorphism, and smooth animations.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0b0f19;
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --blur-amount: 15px;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15), transparent 25%);
}

/* Glassmorphism Panel Container */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography & General */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: var(--text-main);
}
p {
  color: var(--text-muted);
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  filter: brightness(1.2);
}

/* Inputs & Buttons */
.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
input[type="text"], input[type="password"], input[type="email"], select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
input:focus, select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

/* ===== LOGIN PAGE STYLES ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out forwards;
}
.login-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--panel-border);
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(20px);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.nav-links {
  list-style: none;
  flex-grow: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}
.nav-link.active {
  font-weight: 500;
  border-left: 3px solid var(--primary-color);
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}

/* User Profile & Device Select */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content area */
.main-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(11, 15, 25, 0.4);
}
.device-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}
.status-indicator.offline {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

/* Content Area */
.content-area {
  padding: 32px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Dashboard Grid Cards */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.status-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.status-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Progress Bars */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }
.progress-bar.success { background: var(--success); }

/* Quick Actions Grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.action-btn {
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}
.action-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.action-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-color);
  transform: scale(1.02);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none; /* In a real app we'd add a hamburger menu */
  }
}

/* ======== KRİTİK SEKMELİ YAPI DESTEĞİ ========
   Burayı sakın silme, menünün çalışmasını sağlar.
*/
.tab-content {
  display: none !important; /* Varsayılan olarak tüm sekmeleri gizle */
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block !important; /* Sadece active olan sekme görünür olsun */
}