:root {
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #7d7d7d;
    --border-color: #eaeaea;
    --accent-color: #7f0019; /* Muji Red-ish */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1600px; /* Much wider for PC screens */
    margin: 0 auto;
    padding: 60px 40px; /* Reasonable padding */
}

.hero {
    margin-bottom: 50px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
}

.hero h1:hover {
    opacity: 0.6;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 300;
    display: inline-block;
    margin-left: 20px;
}

.grid {
    display: grid;
    /* Allow cards to fill space but not get absurdly wide */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: #b8c480; /* Matcha Green */
    box-shadow: 0 0 0 3px rgba(184, 196, 128, 0.2);
}

.status-dot.offline {
    background-color: #ff9e42; /* Orange */
    box-shadow: 0 0 0 3px rgba(255, 158, 66, 0.2);
}

.section {
    margin-bottom: 35px;
}

.section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.credential-box label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.code-block {
    background: #fdfdfd;
    padding: 15px 18px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #444;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-block:hover {
    background: #f4f4f4;
    border-color: #ccc;
}

.copy-icon {
    font-size: 0.9rem;
    opacity: 0.3;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.user-row:last-child {
    border-bottom: none;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 1rem;
}

.protocol-tags {
    font-size: 0.7rem;
    color: #999;
    margin-top: 3px;
}

.password {
    font-family: 'Menlo', monospace;
    font-size: 0.95rem;
    color: #555;
    background: #f4f4f4;
    padding: 4px 10px;
    border-radius: 3px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.btn:hover {
    border-color: #666;
    color: #000;
    background-color: #fcfcfc;
}

.btn.primary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-top: 25px;
}

.guide-section {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 60px;
}

.guide-section h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: left;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.guide-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

ol {
    padding-left: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.9;
}

li {
    margin-bottom: 12px;
}

strong {
    font-weight: 600;
    color: #222;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    .hero p {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
