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

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: white;
  line-height: 1.6;
  position: relative;
}

.container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: 280px;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
  backdrop-filter: blur(10px);
  color: white;
  overflow-y: auto;
  border-right: 3px solid rgba(52, 152, 219, 0.5);
  position: fixed;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px rgba(52, 152, 219, 0.2);
}

.logo {
  padding: 20px;
  background: linear-gradient(135deg, rgba(52, 73, 94, 0.9), rgba(44, 62, 80, 0.9));
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(52, 152, 219, 0.5);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.logo h1 {
  color: #3498db;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.nav-section {
  margin: 10px 0;
}

.nav-item {
  margin: 5px 0;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 2.5vw, 12px) 20px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(52, 73, 94, 0.8), rgba(44, 62, 80, 0.8));
  border-left: 3px solid rgba(52, 152, 219, 0.6);
  transition: all 0.3s ease;
  user-select: none;
  backdrop-filter: blur(5px);
}

.nav-header:hover {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8));
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.nav-header span {
  font-weight: 600;
  font-size: clamp(14px, 3vw, 16px);
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9));
  backdrop-filter: blur(10px);
}

.dropdown-content.active {
  max-height: 1000px;
}

.dropdown-content a {
  display: block;
  padding: clamp(8px, 2vw, 10px) 20px clamp(8px, 2vw, 10px) 40px;
  color: #ecf0f1;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: clamp(12px, 2.5vw, 14px);
  word-wrap: break-word;
  backdrop-filter: blur(5px);
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.6), rgba(41, 128, 185, 0.6));
  border-left-color: #2980b9;
  color: white;
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2);
}

.active-link {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8)) !important;
  border-left-color: #2980b9 !important;
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3) !important;
}

.content {
  flex: 1;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  margin-left: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.content-area {
  padding: clamp(15px, 4vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-area h1 {
  font-size: clamp(24px, 5vw, 48px);
  color: #3498db;
  margin-bottom: 20px;
  text-align: center;
  word-wrap: break-word;
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
  font-weight: 600;
}

.content-area p {
  font-size: clamp(14px, 2.5vw, 18px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  text-align: center;
}

.tutorial-content {
  background: white;
  backdrop-filter: none;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
  margin-top: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  border: 2px solid rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  color: #2c3e50;
}

.tutorial-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.tutorial-content h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(52, 152, 219, 0.5);
  padding-bottom: 10px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
}

.tutorial-content h3 {
  color: #34495e;
  margin: 20px 0 10px 0;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
}

.tutorial-content p {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
  color: #2c3e50 !important;
  margin-bottom: 10px;
}

.tutorial-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.tutorial-content li {
  margin-bottom: 5px;
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 16px);
  color: #2c3e50 !important;
}

.tutorial-content span,
.tutorial-content font {
  color: #2c3e50 !important;
}

.tutorial-content b,
.tutorial-content strong {
  color: #2c3e50 !important;
  font-weight: bold;
}

.tutorial-content * {
  color: #2c3e50 !important;
}

.tutorial-content a,
.tutorial-content a * {
  text-decoration: none;
  transition: all 0.3s ease;
}

.tutorial-content a:hover,
.tutorial-content a:hover * {
  text-decoration: underline;
}

.tutorial-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(52, 152, 219, 0.2);
}

.tutorial-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  border-color: rgba(52, 152, 219, 0.5);
}

.tutorial-content a[href*="blogger.googleusercontent.com"] {
  display: inline-block;
  margin: 10px 0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.separator {
  margin: 15px 0;
  text-align: center;
}

.note {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
  border-left: 4px solid #3498db;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
  font-size: clamp(14px, 2vw, 16px);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.simple-download-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: clamp(12px, 3vw, 15px) clamp(20px, 5vw, 30px);
  border-radius: 25px;
  text-decoration: none;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  position: relative;
  overflow: hidden;
}

.simple-download-btn:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  color: white;
  text-decoration: none;
}

.simple-download-btn:visited {
  color: white;
  text-decoration: none;
}

.simple-download-btn:active {
  transform: translateY(-1px);
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(52, 73, 94, 0.5);
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: clamp(15px, 3vw, 20px);
  left: clamp(15px, 3vw, 20px);
  z-index: 1002;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 10px;
  padding: clamp(10px, 2.5vw, 12px);
  cursor: pointer;
  font-size: clamp(16px, 4vw, 18px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
}

@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }

  .content {
    margin-left: 250px;
  }

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

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: none;
  }

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

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

  .content {
    margin-left: 0;
    width: 100%;
  }

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

  .content-area h1 {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 15px;
  }

  .tutorial-content {
    padding: 20px 15px;
    margin-top: 15px;
    backdrop-filter: none;
    background: white;
  }

  .tutorial-content img {
    margin: 10px 0;
  }

  .separator {
    margin: 10px 0;
  }

  .simple-download-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
    padding: 15px 20px;
  }

  .tutorial-content:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
  }

  .nav-header:hover {
    transform: none;
    background: rgba(52, 73, 94, 0.8);
    box-shadow: none;
  }

  .dropdown-content a:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
  }

  .simple-download-btn:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  }

  .logo,
  .nav-header,
  .dropdown-content,
  .mobile-menu-btn,
  .note {
    backdrop-filter: none;
  }

  .logo {
    background: rgba(52, 73, 94, 0.95);
  }

  .nav-header {
    background: rgba(52, 73, 94, 0.8);
  }

  .dropdown-content {
    background: rgba(44, 62, 80, 0.95);
  }

  .mobile-menu-btn {
    background: #3498db;
  }

  .note {
    background: rgba(52, 152, 219, 0.1);
  }
}

@media (max-width: 480px) {
  .mobile-menu-btn {
    top: 15px;
    left: 15px;
    padding: 10px;
    font-size: 16px;
  }

  .sidebar {
    width: 100%;
  }

  .content-area {
    padding: 50px 10px 10px 10px;
  }

  .content-area h1 {
    font-size: clamp(18px, 7vw, 28px);
    margin-bottom: 10px;
  }

  .tutorial-content {
    padding: 15px 10px;
    margin-top: 10px;
    border-radius: 10px;
  }

  .tutorial-content h2 {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 10px;
  }

  .tutorial-content h3 {
    font-size: clamp(14px, 3.5vw, 18px);
    margin: 15px 0 8px 0;
  }

  .tutorial-content ul {
    margin-left: 15px;
  }

  .tutorial-content li {
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 3px;
  }

  .note {
    padding: 12px;
    margin: 15px 0;
    font-size: clamp(12px, 3vw, 14px);
  }

  .simple-download-btn {
    font-size: clamp(12px, 3.5vw, 14px);
    padding: 12px 15px;
    border-radius: 20px;
  }

  .nav-header {
    padding: 10px 15px;
    font-size: 14px;
  }

  .dropdown-content a {
    padding: 8px 15px 8px 30px;
    font-size: 12px;
  }

  .logo {
    padding: 15px;
  }

  .logo h1 {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .content-area {
    padding: 45px 8px 8px 8px;
  }

  .tutorial-content {
    padding: 12px 8px;
  }

  .content-area h1 {
    font-size: clamp(16px, 8vw, 24px);
  }

  .simple-download-btn {
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .mobile-menu-btn {
    top: 10px;
    left: 10px;
    padding: 8px;
    font-size: 14px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .content-area {
    padding: 50px 15px 15px 15px;
  }

  .content-area h1 {
    font-size: clamp(18px, 4vw, 28px);
    margin-bottom: 10px;
  }

  .tutorial-content {
    padding: 15px;
  }

  .sidebar {
    width: 250px;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .tutorial-content img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

@media print {
  .sidebar,
  .mobile-menu-btn,
  .simple-download-btn {
    display: none;
  }

  .content {
    margin-left: 0;
    width: 100%;
    background: white;
    color: black;
  }

  .content-area {
    padding: 0;
    max-width: none;
  }

  .tutorial-content {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
    color: black;
  }

  .tutorial-content * {
    color: black !important;
  }
}

.nav-header:focus,
.dropdown-content a:focus,
.simple-download-btn:focus {
  outline: 2px solid rgba(52, 152, 219, 0.8);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  .content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  }

  .tutorial-content {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 26, 0.95));
    color: #e0e0e0;
  }

  .content-area h1 {
    color: #60a5fa;
  }
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(52, 152, 219, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(52, 152, 219, 0.3);
  color: white;
}

h1,
p,
span,
div,
li,
input,
button {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@supports not (backdrop-filter: blur(10px)) {
  .sidebar,
  .tutorial-content,
  .mobile-menu-btn {
    background: rgba(26, 26, 26, 0.95);
  }
}

.home-button {
  position: fixed !important;
  top: clamp(15px, 3vw, 30px) !important;
  left: auto !important;
  right: clamp(20px, 4vw, 40px) !important;
  background: linear-gradient(135deg, #0060df, #003eaa);
  color: white;
  border: none;
  padding: clamp(8px, 2vw, 12px);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 96, 223, 0.3);
  z-index: 100;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(35px, 8vw, 45px);
  height: clamp(35px, 8vw, 45px);
  transform: none !important;
}

.home-button:hover {
  background: linear-gradient(135deg, #003eaa, #0060df);
  box-shadow: 0 8px 25px rgba(0, 96, 223, 0.4);
  transform: none !important;
}

.home-button:active {
  background: linear-gradient(135deg, #002080, #0060df);
  box-shadow: 0 4px 15px rgba(0, 96, 223, 0.5);
  transform: none !important;
}

.home-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  transform: none !important;
}

.home-icon {
  width: clamp(18px, 4vw, 24px);
  height: clamp(18px, 4vw, 24px);
  filter: brightness(0) invert(1);
  transition: none;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

@media (hover: none) {
  .home-button {
    cursor: default;
  }
}

@media (max-width: 768px) {
  .home-button:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 96, 223, 0.3);
  }
}
