/* GENERAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* SIDEBAR */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100%;
  background: #2c3e50;
  color: #fff;
  padding: 20px;
  overflow-y: auto;
  transition: 0.3s;
}

.side-nav .profile-pic {
  width: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
}

.side-nav h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.side-nav ul {
  list-style: none;
}

.side-nav ul li {
  margin: 15px 0;
}

.side-nav ul li a {
  color: #ecf0f1;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

.side-nav ul li a:hover,
.side-nav ul li a.active {
  background: #34495e;
}

/* MAIN CONTENT */
.main-content {
  margin-left: 270px;
  padding: 20px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

header h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #555;
}

header p {
  margin-bottom: 20px;
  color: #666;
}

.sql-container {
  background: #f7f7f7;
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.sql-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.copy-btn {
  padding: 5px 12px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.copy-btn:hover {
  background: #2980b9;
}

pre {
  background: #2d3436;
  color: #dfe6e9;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
}

/* IMAGES */
.preview-img {
  width: 100%;
  max-width: 600px;
  margin-top: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}

.preview-img:hover {
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

/* CENTER HEADINGS */
.center-question {
  text-align: center;
  margin-bottom: 15px;
  color: #2c3e50;
}
/* Make screenshots responsive and smaller */
.screenshot img {
    max-width: 40%;      /* image will not exceed container width */
    height: auto;         /* maintain aspect ratio */
    display: block;
    margin: 10px 0;       /* some spacing above and below */
    border-radius: 8px;   /* optional: rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* optional: subtle shadow */
}