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

body {
  background-color: #000000;
  color: #e2e8f0;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
}

/* Sidebar */
.sidebar {
  background-color: #14e32d;
  color: #f8fafc;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  padding-top: 30px;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.sidebar h4 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.3rem;
  color: #8a2be2;
  font-weight: 600;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 14px 25px;
  display: block;
  font-size: 1rem;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar ul li a:hover {
  background-color: #14e32d;
  border-left: 4px solid #8a2be2;
  color: #ffffff;
}

/* Main Content */
.main-content {
  margin-left: 300px;
  padding: 30px;
  transition: all 0.3s ease;
}

.navbar-custom {
  background-color: #1e293b;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 99;
}

.navbar-custom .navbar-brand {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  color: #8a2be2;
  transform: scale(1.1);
}

header {
  background: linear-gradient(135deg, #8a2be2 0%, #1e293b 100%);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header p {
  font-size: 1.1rem;
  margin-top: 15px;
  opacity: 0.9;
}

.section-title {
  color: #8a2be2;
  margin-top: 40px;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #8a2be2;
  border-radius: 3px;
}

.section-content {
  background-color: #1e293b;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  border: 1px solid #334155;
  text-align: center;
}

.code-block {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #334155;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  margin-top: 15px;
  text-align: left;
  margin: 0 auto;
  max-width: 95%;
}

.btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.btn-custom {
  background-color: #8a2be2;
  color: white;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-custom:hover {
  background-color: #8a2be2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.alert-custom {
  padding: 18px;
  margin-top: 25px;
  border-radius: 8px;
  border-left: 5px solid;
}

.alert-success {
  background-color: rgba(21, 128, 61, 0.2);
  border-color: #16a34a;
  color: #86efac;
}

.alert-danger {
  background-color: rgba(185, 28, 28, 0.2);
  border-color: #dc2626;
  color: #fca5a5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
}

table th, table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

table th {
  background-color: #8a2be2;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

table tr:nth-child(odd) {
  background-color: #1e293b;
}

table tr:nth-child(even) {
  background-color: #1e293b;
}

table tr:hover {
  background-color: #334155;
}

footer {
  background-color: #1e293b;
  color: #94a3b8;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
  border-radius: 10px;
}

footer a {
  color: #8a2be2;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #8a2be2;
  text-decoration: underline;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #8a2be2;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8a2be2;
}

/* Responsive Design */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .navbar-custom {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-content {
    padding: 20px;
  }
  
  .code-block {
    padding: 15px;
    font-size: 0.85rem;
  }
}