/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: arial, helvetica, sans-serif;
    color: #333;
    background-color: #fff;
}

code, .url-display {
    font-family: 'Courier New', Consolas, Monaco, monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #006633;
    color: #fff;
    padding: 0.5rem 0;
    border-bottom: 2px solid #004d26;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    font-family: 'Courier New', monospace;
}

.logo:hover {
    color: #eee;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.2rem 1rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.nav-menu a:hover {
    background-color: #fff;
    color: #006633;
}

/* Main Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 1rem 0;
    max-width: 100%;
}

.content-area {
    min-width: 0; /* Prevents grid blowout */
    overflow-wrap: break-word;
}

/* URL Display */
.url-display {
    background: #006633;
    color: #fff;
    padding: 3px;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid #004d26;
}

.url-display:hover {
    background: #005028;
}

.url-prefix {
    color: #ccc;
    font-size: 1.2rem;
}

.url-main {
    color: #fff;
    font-weight: bold;
}

/* Page Title */
.page-title {
    font-size: 2.2rem;
    color: #006633;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #006633;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Access Button */
.access-button {
    display: inline-block;
    background: #006633;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    border: 2px solid #006633;
}

.access-button:hover {
    background: #005028;
    border-color: #005028;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    margin: 2rem 0;
}

.content-section h2 {
    color: #006633;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.content-section h3 {
    color: #006633;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Lists - Standard UL */
.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section ul li {
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.8;
}

/* Ordered Lists with Custom Numbering */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    margin: 1.5rem 0;
    padding: 0;
}

.steps-list > li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    line-height: 1.8;
    color: #555;
}

.steps-list > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #006633;
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Nested lists inside steps-list - Use regular bullets */
.steps-list > li ul {
    list-style-type: disc;
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.steps-list > li ul li {
    margin-bottom: 0.5rem;
    padding-left: 0;
    position: static;
}

.steps-list > li ul li::before {
    display: none;
}

/* Regular ordered lists (not steps-list) */
.content-section ol:not(.steps-list) {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section ol:not(.steps-list) li {
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.8;
}

/* Code Elements */
code {
    background-color: #f5f5f5;
    color: #006633;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.95em;
    border: 1px solid #eee;
}

.code-block {
    background: #f5f5f5;
    color: #333;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    border: 1px solid #ccc;
    white-space: pre;
    line-height: 1.4;
    font-size: 0.85rem;
    overflow-wrap: break-word;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: #006633;
    color: #fff;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #555;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Info and Warning Boxes */
.info-box, .warning-box, .terminal-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid;
}

.info-box {
    background-color: #e8f5e9;
    border-color: #006633;
    color: #004d26;
}

.warning-box {
    background-color: #fff8e1;
    border-color: #ff9800;
    color: #e65100;
}

.terminal-box {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    white-space: pre;
    line-height: 1.4;
    font-size: 0.85rem;
}

.info-box strong, .warning-box strong, .terminal-box strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #006633;
}

.terminal-box strong {
    color: #333;
}

/* Sidebar */
.sidebar {
    height: fit-content;
    min-width: 0; /* Prevents grid blowout */
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: #006633;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 0.5rem;
}

.sidebar-widget a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.sidebar-widget a:hover {
    background-color: #006633;
    color: #fff;
    padding-left: 1rem;
}

/* Footer */
.footer {
    background-color: #006633;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 2px solid #004d26;
}

.footer p {
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        justify-content: flex-start;
    }
    
    .nav-menu {
        display: none;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .url-display {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .steps-list > li {
        padding-left: 2.5rem;
    }
    
    .steps-list > li::before {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .url-display {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .header-content {
        justify-content: flex-start;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .steps-list > li {
        padding-left: 2.5rem;
    }
    
    .steps-list > li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
    
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}