/* Main CSS for Hello Tools Theme */

:root {
  --background-dark: #111315;
  --sidebar-bg: #1a1d20;
  --text-light: #f0f0f0;
  --text-gray: #b0b0b0;
  --accent-purple: #8b5cf6;
  --border-color: #2d3033;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.top-bar .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-branding .site-title a {
  color: var(--text-light);
  text-decoration: none;
}

.mobile-sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  padding: 5px;
  z-index: 1001;
}

.hamburger {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Main Wrapper */
.main-wrapper {
  display: flex;
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  width: 300px;
  background-color: var(--sidebar-bg);
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
  transition: transform 0.3s ease;
}

.sidebar-inner {
  padding: 0 15px;
}

.sidebar-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-navigation ul li {
  margin-bottom: 5px;
}

.sidebar-navigation ul li a {
  display: block;
  padding: 12px 15px;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar-navigation ul li a:hover,
.sidebar-navigation ul li a:focus {
  background-color: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}

.sidebar-navigation ul li.current-menu-item a,
.sidebar-navigation ul li.current_page_item a {
  background-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  font-weight: 600;
}

/* Content Area */
.content-area {
  flex: 1;
  margin-left: 300px;
  padding: 30px;
  min-height: calc(100vh - 120px);
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: var(--sidebar-bg);
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  margin-left: 300px;
}

.site-info {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .sidebar {
    width: 80%;
    transform: translateX(-100%);
    z-index: 999;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content-area {
    margin-left: 0;
  }

  .site-footer {
    margin-left: 0;
  }

  .mobile-sidebar-toggle {
    display: block;
  }

  .top-bar {
    padding: 0 15px;
  }

  .content-area {
    padding: 20px 15px;
  }
}

/* Elementor Compatibility */
.elementor-page .content-area {
  padding: 0;
}

.elementor-page .site-main {
  max-width: 100%;
  margin: 0;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

/* Buttons */
button, .button, input[type="button"], input[type="submit"] {
  background-color: var(--accent-purple);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover {
  background-color: #7c3aed;
  text-decoration: none;
}

/* Forms */
input, textarea, select {
  background-color: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 10px;
  border-radius: 6px;
  width: 100%;
}

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