/* Cheat Code Page Styles */

.software-container {
    width: 100%;
    max-width: 1000px;
    background: rgba(16, 24, 48, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    margin-bottom: 2rem;
    font-family: 'Noto Sans JP', sans-serif;
}
.sub-page p{
	margin-bottom: 1em;
}
.sub-page p:last-child{
	margin-bottom: 0;
}

#code h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

#code h3::before {
    content: '?';
    margin-right: 0.5rem;
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Responsive table scrolling */
    margin-bottom: 1rem;
    border: 1px solid rgba(160, 216, 239, 0.1);
    border-radius: 5px;
}

.table-fixed-height {
    max-height: none;
    /* Remove height limit as requested */
    overflow-y: visible;
    /* Allow full height expansion */
    border: none;
    /* Border moved to wrapper */
}

/* Custom scrollbar for table */
.table-fixed-height::-webkit-scrollbar {
    width: 8px;
}

.table-fixed-height::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.table-fixed-height::-webkit-scrollbar-thumb {
    background: rgba(160, 216, 239, 0.3);
    border-radius: 4px;
}

.table-fixed-height::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 216, 239, 0.5);
}

.software-container h3 {
    font-family: 'Noto Serif JP', serif;
    color: var(--text-white);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(160, 216, 239, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-white);
    font-family: 'Noto Sans JP', sans-serif;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(160, 216, 239, 0.1);
    vertical-align: top;
}

th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    /* White text as requested */
    font-weight: normal;
    /* Only header row bold */
    min-width: 150px;
    white-space: nowrap;
}

thead th {
    font-weight: 700;
}

td {
    background: rgba(255, 255, 255, 0.02);
    line-height: 1.6;
    font-size: 0.95rem;
}

tr:hover td {
    background: rgba(100, 181, 246, 0.05);
}

/* Compact Table for Analysis Page */
.compact-data-table {
    width: auto;
    /* Allow table to shrink */
    min-width: 50%;
    /* But keep some structure */
}


.compact-data-table th {
    padding: 0;
    font-size: 0.95rem;
    min-width: 40px;
}

.compact-data-table td {
    padding: 0;
    font-size: 0.95rem;
    min-width: 40px;
}

.code-font {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #A0D8EF;
    /* Light blue */
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.5rem;
    /* More padding */
    border-radius: 4px;
    border: 1px solid rgba(160, 216, 239, 0.3);
    display: inline-block;
    margin: 0.2rem 0;
    font-size: 1.05rem;
    /* Slightly larger */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-link {
    margin-top: 1rem;
}

/* Grid Style Layout */
.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.code-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(160, 216, 239, 0.1);
    border-left: 3px solid var(--accent-blue);
    padding: 1.5rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: 0.3s;
}

.code-card:hover {
    background: rgba(100, 181, 246, 0.05);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.code-card h4.code-label {
    font-size: 0.9rem;
    color: var(--accent-silver);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.code-card .code-value {
    color: var(--text-white);
}

.code-card .code-font {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    display: block;
    width: fit-content;
}

.code-card .code-note {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.code-card.full-width {
    grid-column: 1 / -1;
}

.memo-card {
    border-left-color: var(--accent-gold);
}

/* Compact List Style Layout */
.compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compact-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(160, 216, 239, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    transition: 0.2s;
}

.compact-item:hover {
    background: rgba(160, 216, 239, 0.1);
    border-left-color: var(--accent-gold);
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Handle small screens */
    gap: 1rem;
}

.compact-label {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 700;
}

.compact-item .code-font {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin: 0;
    padding: 0;
}

.compact-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.3rem;
    line-height: 1.4;
    width: 100%;
}



/* Vertical Code Block Layout */
.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vertical-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(160, 216, 239, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.vertical-label {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.vertical-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    margin-right: 0.8rem;
    box-shadow: 0 0 5px var(--accent-blue);
}

.vertical-code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(160, 216, 239, 0.2);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.vertical-code-block::before {
    content: 'CODE';
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(160, 216, 239, 0.2);
    color: var(--accent-blue);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-bottom-left-radius: 5px;
    letter-spacing: 1px;
}

.code-line {
    color: #A0D8EF;
    font-size: 1.05rem;
    line-height: 1.6;
    display: block;
}

.code-line .comment {
    color: #6c8b9d;
    font-size: 0.9rem;
    margin-left: 1rem;
    font-style: italic;
}

.vertical-note {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.separator {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.info-box {
    background: rgba(100, 181, 246, 0.05);
    border-left: 3px solid var(--accent-blue);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 5px 5px 0;
}

.info-box ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.info-box li {
    margin-bottom: 0.3rem;
}

/* Tab Interface Styles */
/* Tab Interface Styles */
.tab-header {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    justify-content: center;
    border-bottom: none;
    /* Remove container border */
    margin-bottom: 2rem;
    overflow-x: visible;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    padding-top: 1rem;
    margin-top: -1rem;
}

/* Hide scrollbar for Chrome/Safari/Opera */
.tab-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s;
    border-bottom: 2px solid rgba(160, 216, 239, 0.2);
    /* Default underline for all */
    margin-bottom: 0;
    white-space: nowrap;
    opacity: 0.6;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    /* Fill width */
    text-align: center;
}

.tab-btn:hover {
    color: var(--accent-blue);
    background: rgba(160, 216, 239, 0.05);
    opacity: 0.8;
}

.tab-btn.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    /* Active underline */
    background: transparent;
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    z-index: 10;
    box-shadow: inset 0 -1px 0 0 var(--accent-gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}