/* Hytale Javadoc Stylesheet - Classic Javadoc Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: DejaVu Sans, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

a {
    color: #4D7A97;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #6A8FA8;
}

/* Frames Layout */
.frameset {
    display: flex;
    height: 100%;
    width: 100%;
}

.frame-left {
    width: 20%;
    min-width: 200px;
    height: 100%;
    overflow: auto;
    border-right: 1px solid #ccc;
}

.frame-right {
    flex: 1;
    height: 100%;
    overflow: auto;
}

/* Navigation Header */
.navHeader {
    background: linear-gradient(to bottom, #5D8AA8 0%, #4D7A97 100%);
    color: #fff;
    padding: 5px 10px;
    border-bottom: 1px solid #3D6A87;
}

.navBar {
    font-size: 12px;
}

.navBar a {
    color: #fff;
    text-decoration: none;
}

.navBar a:hover {
    text-decoration: underline;
}

/* Page Header */
.header {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.title {
    font-size: 28px;
    font-weight: bold;
    color: #4D7A97;
    margin: 0;
}

/* Documentation Content */
.content {
    padding: 15px 20px;
}

/* Class Signature */
.signature {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 14px;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 10px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Description Block */
.description {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.description .block {
    margin: 10px 0;
    line-height: 1.6;
}

.description .block p {
    margin: 8px 0;
}

.description .block ul {
    margin: 8px 0;
    padding-left: 25px;
}

.description .block li {
    margin: 4px 0;
}

.description .block pre {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 12px;
    background-color: #f5f5f5;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
}

.description .block code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    background-color: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Inheritance Section */
.inheritance {
    padding: 10px 20px;
    background-color: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
}

.inheritance h3 {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    margin: 0;
}

/* Summary Sections */
.summary, .details {
    padding: 15px 20px;
}

.summary h3, .details h3 {
    font-size: 18px;
    color: #4D7A97;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.blockList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blockList li {
    margin-bottom: 15px;
}

/* Method and Field Details */
.methodDetail, .fieldDetail {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.methodName, .fieldName {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.memberSignature {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    background-color: #fff;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modifiers {
    color: #000;
}

.returnType {
    color: #0066CC;
}

.memberName {
    font-weight: bold;
    color: #333;
}

.arguments {
    color: #660066;
}

.notes {
    margin: 10px 0;
    font-size: 13px;
}

.notes dt {
    font-weight: bold;
    color: #4D7A97;
    margin-top: 8px;
}

.notes dd {
    margin-left: 20px;
    margin-top: 4px;
}

.seeList {
    list-style: none;
    padding: 0;
}

.seeList li {
    display: inline;
    margin-right: 15px;
}

/* Index Container */
.indexContainer {
    padding: 10px;
}

.indexContainer h2 {
    font-size: 16px;
    color: #4D7A97;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.indexContainer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.indexContainer ul ul {
    margin-left: 15px;
    list-style-type: circle;
}

.indexContainer li {
    margin: 3px 0;
}

/* Help Page */
.helpContent {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.helpContent h1 {
    color: #4D7A97;
    margin-bottom: 20px;
}

.helpContent h2 {
    color: #4D7A97;
    margin-top: 25px;
    margin-bottom: 10px;
}

.helpContent p {
    margin: 10px 0;
    line-height: 1.6;
}

.helpContent ul {
    margin: 10px 0;
    padding-left: 25px;
}

.helpContent li {
    margin: 5px 0;
}

/* Search Box */
.searchBox {
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.searchBox input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.searchResults {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
}

.searchResults.show {
    display: block;
}

.searchResults a {
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.searchResults a:hover {
    background: #f5f5f5;
}

/* Footer */
footer {
    text-align: center;
    font-size: 11px;
    color: #666;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    margin-top: 20px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

th {
    background-color: #4D7A97;
    color: #fff;
}

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

/* Print Styles */
@media print {
    .navHeader, footer, .searchBox {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .memberSignature, .signature {
        border: 1px solid #000;
        background: none;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .title {
        font-size: 22px;
    }
    
    .memberSignature {
        font-size: 12px;
        overflow-x: auto;
    }
    
    .frame-left {
        width: 30%;
    }
}

/* Animation for search */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Search box styles */
.searchBox {
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.searchBox input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.searchBox input:focus {
    outline: none;
    border-color: #4D7A97;
    box-shadow: 0 0 3px rgba(77, 122, 151, 0.3);
}

.searchResults {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    width: calc(100% - 20px);
    left: 10px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.searchResults.show {
    display: block;
    animation: fadeIn 0.2s;
}

.searchResults a {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.searchResults a:hover {
    background: #f0f5f8;
}

.searchResults a strong {
    color: #4D7A97;
    font-size: 14px;
}

.searchResults a span.kind {
    color: #666;
    font-size: 11px;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.searchResults a span.package {
    color: #999;
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.searchResults .no-results {
    padding: 15px;
    color: #666;
    text-align: center;
}

/* Type links */
.type-link {
    color: #0066CC;
    text-decoration: none;
    font-weight: bold;
}

.type-link:hover {
    text-decoration: underline;
    color: #004499;
}

/* Parameter styling */
.arguments {
    color: #333;
}

.param {
    margin: 0 2px;
}

.param-type {
    color: #0066CC;
}

.param-name {
    color: #333;
    font-weight: bold;
}

.param + .param:before {
    content: ", ";
    color: #666;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4D7A97;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

/* Overview Page Styles */
.subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}

.overview-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 30px;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #4D7A97;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-section {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.package-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.package-section h3 a {
    color: #4D7A97;
}

.package-info {
    color: #666;
    font-size: 12px;
    margin: 0 0 10px 0;
}

.class-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.class-quick-list li {
    margin: 0;
}

.class-quick-list a {
    font-size: 12px;
    padding: 3px 8px;
    background: #e8e8e8;
    border-radius: 3px;
    color: #555;
}

.class-quick-list a:hover {
    background: #4D7A97;
    color: #fff;
    text-decoration: none;
}

/* Tree View Styles */
.tree {
    font-size: 13px;
}

.tree ul {
    list-style: none;
    padding-left: 18px;
    margin: 0;
}

.tree > ul {
    padding-left: 0;
}

.tree li {
    margin: 2px 0;
    white-space: nowrap;
}

.tree li.parent {
    cursor: pointer;
}

.tree .toggle {
    display: inline-block;
    width: 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    color: #666;
}

.tree .toggle:hover {
    color: #333;
}

.tree .toggle.expanded:before {
    content: "▼";
}

.tree .toggle.collapsed:before {
    content: "▶";
}

.tree .toggle.empty {
    visibility: hidden;
}

.tree a {
    color: #4D7A97;
    text-decoration: none;
}

.tree a:hover {
    text-decoration: underline;
}

.tree a.package-link {
    color: #333;
}

.tree a.package-link:hover {
    color: #4D7A97;
}

.tree .collapsed > ul {
    display: none;
}

.tree .expanded > ul {
    display: block;
}

.tree .package-children {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
}

.tree a.class-link {
    color: #4D7A97;
    font-size: 12px;
}

.tree a.class-link:hover {
    color: #2D5A77;
}

.tree .package-name {
    cursor: pointer;
}

.tree .package-name:hover {
    color: #4D7A97;
}
