/* DevFlowHQ Professional Styling */
:root {
  --sidebar-width: 280px;
}

[data-bs-theme="dark"] {
  --sidebar-bg: #1a1b1e;
  --main-bg: #212529;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --accent-color: #0d6efd;
  --border-color: #2c2e33;
  --card-bg: #2c2e33;
  --input-bg: #1a1b1e;
}

[data-bs-theme="light"] {
  --sidebar-bg: #f8f9fa;
  --main-bg: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-color: #0d6efd;
  --border-color: #dee2e6;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
}

body {
  background-color: var(--main-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Sidebar Layout */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  min-height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  transition: all 0.3s;
}

#sidebar .sidebar-header {
  padding: 20px;
  background-color: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-color);
}

#sidebar ul.components {
  padding: 20px 0;
}

#sidebar ul li a {
  padding: 10px 20px;
  font-size: 1rem;
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

#sidebar ul li a:hover {
  color: var(--text-primary);
  background-color: #25262b;
  border-left: 3px solid var(--accent-color);
}

#sidebar ul li.active > a {
  color: #fff;
  background-color: #2c2e33;
  border-left: 3px solid var(--accent-color);
}

#content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Enhancements */
.navbar {
  background-color: var(--sidebar-bg) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.nav-link {
  color: var(--text-secondary) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

/* Card Styling */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.form-control,
.form-select {
  background-color: var(--input-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Code Box */
pre {
  background-color: var(--input-bg);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* AdSense Placeholders */
.ad-placeholder {
    background-color: #343a40;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #495057;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-leaderboard {
    width: 100%;
    min-height: 90px;
    margin-top: 20px;
}

.ad-skyscraper {
    width: 100%;
    min-height: 600px;
    margin-top: auto; /* Push to bottom of sidebar */
}

.ad-rectangle {
    width: 100%;
    min-height: 250px;
    margin-top: 20px;
}

/* Button Animations */
.btn-primary {
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

