/* Resetting default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Removed duplicate .toolbar, .logo, .nav-links, .sidebar styles */

.main-content {
    margin-left: 250px; /* Standardized sidebar width */
    padding: 80px 30px 30px 30px; /* Standardized padding */
    flex: 1;
}

.footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    position: relative;
    z-index: 1000;
}

.hero {
    background: linear-gradient(135deg, #3b82f6, #1f2937);
    color: rgb(250, 250, 252);
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.installation {
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.installation h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
}

.installation h3 {
    font-size: 28px;
    margin-top: 30px;
    color: #374151;
}

.installation p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.installation ol {
    list-style: decimal;
    padding-left: 20px;
}

.installation ol li {
    margin-bottom: 10px;
}

.installation pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.installation code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
}

  /* Removed duplicate .search-bar styles */

  .docker-swarm {
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.docker-swarm h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
}

.docker-swarm h3 {
    font-size: 28px;
    margin-top: 30px;
    color: #374151;
}

.docker-swarm p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.docker-swarm ol {
    list-style: decimal;
    padding-left: 20px;
}

.docker-swarm ol li {
    margin-bottom: 10px;
}

.docker-swarm ul {
    list-style: disc;
    padding-left: 20px;
}

.docker-swarm ul li {
    margin-bottom: 10px;
}
/* Template Section */
.templates {
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.templates h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
}

.templates .template {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.templates .template h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #374151;
}

.templates .template p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.templates .template pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #ddd;
}

.templates .template button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #3b82f6;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.templates .template button:hover {
    background-color: #1f2937;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.comparison-table th, .comparison-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.comparison-table th {
  background-color: #f2f2f2;
  text-align: left;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.comparison-table tr:hover {
  background-color: #f1f1f1;
}
.suggestions {
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 20px);
    z-index: 1000;
  }
  .suggestion-item {
    padding: 10px;
    cursor: pointer;
  }
  .suggestion-item:hover {
    background-color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    /* Adjust sidebar width for tablets */
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        padding: 60px 20px 20px 20px;
    }
}

@media (max-width: 768px) {
    /* Hide sidebar and make it toggleable */
    .sidebar {
        display: none;
        position: fixed;
        top: 60px;
        left: -250px;
        width: 250px;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 60px 20px 20px 20px;
    }

    /* Toolbar adjustments */
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links a {
        margin: 5px 0;
    }

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

    .search-bar input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for mobile */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .installation h2,
    .docker-swarm h2,
    .templates h2 {
        font-size: 28px;
    }

    .installation h3,
    .docker-swarm h3,
    .templates h3 {
        font-size: 24px;
    }

    .installation ol,
    .docker-swarm ol,
    .docker-swarm ul {
        padding-left: 15px;
    }

    .installation pre,
    .docker-swarm pre,
    .templates pre {
        font-size: 12px;
    }
}