body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden; /* Ensures child elements don't break rounded corners */
}

header {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #ecf0f1; /* Light gray */
    padding: 20px 30px;
    text-align: center;
    border-bottom: 4px solid #3498db; /* Blue accent */
}

header h1 {
    margin: 0;
    font-weight: 500;
    font-size: 2em;
}

.main-layout {
    display: flex;
}

.ticket-nav {
    width: 25%;
    min-width: 250px;
    max-width: 350px;
    background-color: #ecf0f1; /* Light gray */
    padding: 20px;
    border-right: 1px solid #bdc3c7; /* Slightly darker gray */
    height: calc(100vh - 100px); /* Adjust based on header height */
    overflow-y: auto;
}

.ticket-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ticket-nav li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #2c3e50; /* Dark blue-gray */
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
}

.ticket-nav li a:hover {
    background-color: #dfe6e9; /* Lighter hover */
    color: #1a252f;
}

.ticket-nav li a.active {
    background-color: #3498db; /* Blue */
    color: #fff;
    font-weight: 500;
}

.ticket-content-area {
    flex-grow: 1;
    padding: 30px;
    height: calc(100vh - 100px); /* Adjust based on header height */
    overflow-y: auto;
}

.ticket-detail h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 500;
}

.explanation-block, .methods-block {
    margin-bottom: 30px;
}

.explanation-block h3, .methods-block h3 {
    color: #34495e; /* Slightly lighter dark blue-gray */
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 500;
}

.method-card {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #3498db; /* Blue accent */
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.method-card h4 {
    color: #2980b9; /* Darker blue */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 500;
}

.method-card p {
    margin-bottom: 10px;
}

.method-card p strong {
    color: #555;
    font-weight: 500;
}

/* PrismJS Code Block Styling */
pre[class*="language-"] {
    padding: 1em;
    margin: .5em 0 1.5em 0; /* Added bottom margin */
    overflow: auto;
    border-radius: 0.3em;
    font-size: 0.9em; /* Slightly smaller font for code */
}

.code-block {
    margin-top: 15px;
}
.code-block p strong {
    display: block;
    margin-bottom: 5px;
}


.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    .ticket-nav {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 300px; /* Allow scrolling for nav on small screens */
        border-right: none;
        border-bottom: 1px solid #bdc3c7;
    }
    .ticket-content-area, .ticket-nav {
        height: auto; /* Reset fixed height */
    }
}