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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(160deg, #0a2530 0%, #0d3540 50%, #0a2a35 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5d5e0;
    padding: 20px;
}

.container {
    max-width: 750px;
    width: 100%;
}

.minecraft-panel {
    background: rgba(10, 30, 40, 0.95);
    border: 4px solid #1a5a6a;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 0 24px rgba(42, 165, 165, 0.08);
}

.title {
    color: #2dd5c5;
    font-size: 26px;
    text-shadow: 2px 2px 0 #0a3a3a;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #5ab5b5;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.description {
    text-align: center;
    line-height: 1.7;
    margin: 20px 0;
    color: #8ab5c5;
}

.description code {
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 3px;
    color: #5abadb;
    font-size: 0.95em;
}

.form-section {
    margin: 28px 0;
    padding-top: 20px;
    border-top: 1px solid #1a5a6a;
}

.form-section-title {
    color: #2dd5c5;
    font-size: 16px;
    margin-bottom: 14px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group-inline {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
}

.form-group-small {
    flex: 0 0 70px;
}

.form-group-small .input-field {
    padding: 10px;
    text-align: center;
}

.form-group-checkbox {
    flex: 0 0 auto;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    padding-bottom: 4px;
}

.form-group-checkbox label {
    margin-bottom: 0;
    color: #8ab5c5;
    font-weight: normal;
    cursor: pointer;
}

.form-group-checkbox input {
    margin-right: 8px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2dd5c5;
    font-weight: bold;
}

.input-field {
    width: 100%;
    padding: 12px;
    background: rgba(10, 40, 50, 0.5);
    border: 2px solid #1a5a6a;
    border-radius: 4px;
    color: #c5e0e5;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
}

.input-field:focus {
    outline: none;
    border-color: #2aa5a5;
    background: rgba(10, 40, 50, 0.7);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: #1a6a7a;
    color: white;
    border-color: #0d4a5a;
}

.btn-primary:hover {
    background: #2a8a9a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 165, 165, 0.35);
}

.success-box {
    background: rgba(26, 90, 74, 0.25);
    border: 2px solid #1a6a5a;
    border-radius: 4px;
    padding: 18px;
    margin: 20px 0;
    text-align: center;
}

.success-box p {
    color: #8ad5b5;
}

.warning-box {
    background: rgba(90, 74, 26, 0.25);
    border: 2px solid #6a5a1a;
    border-radius: 4px;
    padding: 18px;
    margin: 20px 0;
}

.warning-box p {
    color: #d5c58a;
}

.link-text {
    text-align: center;
    margin: 18px 0 0;
    color: #6a8a9a;
}

.link-text a {
    color: #2aa5a5;
    text-decoration: none;
}

.link-text a:hover {
    color: #3dd5d5;
    text-decoration: underline;
}

.info-box {
    background: rgba(26, 74, 90, 0.3);
    border: 2px solid #1a5a6a;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.info-box h3 {
    color: #2dd5c5;
    margin-bottom: 12px;
    font-size: 16px;
}

.info-box p {
    margin: 10px 0;
    line-height: 1.6;
    color: #8ab5c5;
}

.info-box .hint {
    font-size: 13px;
    color: #7aa5b5;
    margin-bottom: 12px;
}

.total-count {
    margin-bottom: 14px;
}

.total-count strong {
    color: #2dd5c5;
}

.collection-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.collection-table th,
.collection-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #1a5a6a;
}

.collection-table th {
    background: rgba(26, 74, 90, 0.5);
    color: #2dd5c5;
    font-weight: bold;
}

.collection-table td {
    color: #b5d5e0;
}

.collection-table tbody tr:nth-child(even) {
    background: rgba(10, 40, 50, 0.3);
}

.example-b64 {
    font-size: 12px;
    word-break: break-all;
    min-height: 80px;
}

.btn-secondary {
    background: #3a5a6a;
    color: white;
    border-color: #2a4a5a;
}

.btn-secondary:hover {
    background: #4a6a7a;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .minecraft-panel {
        padding: 20px;
    }
    .title {
        font-size: 22px;
    }
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .form-group-inline,
    .form-group-small {
        flex: none;
        min-width: 0;
    }
}
