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

body {
    background: repeating-linear-gradient(45deg,
            #b28a59,
            #b28a59 20px,
            #a5713e 20px,
            #a5713e 40px);
    background-size: cover;
    background-color: #4b3019;
    color: #ffedd5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background-color: rgba(102, 61, 25, 0.5);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid #8a5427;
}


.logo-link {
    position: absolute;
    left: 1rem;
    top: 60%;
    transform: translateY(-50%);
    line-height: 0;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

#logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

header>div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

header p {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #fde8c8;
    margin: 0;
}

@media (max-width: 500px) {
    .header-subtagline {
        display: none;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
    justify-items: center;
    width: 100%;
    max-width: 1216px;
}

.card {
    background-color: rgba(37, 20, 10, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    border: 2px solid #8a5427;
    max-width: 38rem;
    width: 100%;
    padding: 2rem;
    backdrop-filter: blur(12px);
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

@media (orientation: landscape) and (max-height: 430px) {
    main {
        padding: 3rem 0.5rem;
    }

    .card {
        max-width: none;
        min-width: 0;
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    #logo {
        height: 96px;
    }
}

@media (min-width: 1216px) {
    .logo-link {
        left: calc((100% - 1216px) / 2 + 1rem);
    }
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fb923c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2 svg {
    width: 1.5rem;
    height: 1.5rem;
}

.error-box {
    color: #f87171;
    font-weight: 600;
    margin-bottom: 1rem;
    background-color: rgba(127, 29, 29, 0.2);
    border: 1px solid #991b1b;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

ul {
    list-style: none;
}

.info-list {
    border-top: 1px solid #8a5427;
}

.info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #8a5427;
    gap: 1rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #fde8c8;
    min-width: 140px;
    flex-shrink: 0;
}

.info-value {
    font-family: 'Courier New', monospace;
    color: #fb923c;
    text-align: left;
}

.cpu-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    flex: 1;
    min-width: 0;
}

.cpu-bar-wrapper {
    flex: 1;
    background-color: #8a5427;
    border-radius: 0.25rem;
    height: 1.25rem;
    position: relative;
    overflow: hidden;
}

.cpu-bar {
    height: 100%;
    background: linear-gradient(90deg, #fdba74 0%, #fb923c 100%);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    min-width: 2px;
}

.cpu-bar.high {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.cpu-bar.critical {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.cpu-value {
    font-family: 'Courier New', monospace;
    color: #fb923c;
    font-size: 0.875rem;
    min-width: 3.5rem;
    text-align: right;
}

footer {
    text-align: center;
    padding: 0.5rem;
    color: #fde8c8;
    font-weight: 500;
    background-color: rgba(102, 61, 25, 0.5);
    backdrop-filter: blur(8px);
    border-top: 2px solid #8a5427;
}

footer a {
    color: #fb923c;
    text-decoration: underline;
    transition: color 0.2s;
}

footer a:hover {
    color: #fdba74;
}

svg.w-10 {
    width: 2.5rem;
    height: 2.5rem;
}