/* ======== Base Theme ======== */
body {
    font-family: Arial, sans-serif;
    background: #0f0f0f;
    color: #eaeaea;
    padding: 20px;
    margin: 0;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* ======== Dashboard Grid ======== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
    row-gap: 60px;                /* increased from 35px → 60px for clear separation */
    column-gap: 25px;             /* slight increase for breathing room */
    justify-content: center;
    align-items: start;
    padding: 20px 0 60px 0;       /* gives buffer on top and bottom of layout */
}


/* ======== Service Cards ======== */
.card {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;                  /* fill grid row height */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    line-height: 1.35;
}

/* Tight and consistent spacing for text */
.card h2, 
.card h3, 
.card p {
    margin: 5px 0;
}

/* Status colors */
.card.online { border-left: 6px solid #28a745; }
.card.offline { border-left: 6px solid #dc3545; }
.card.maintenance { border-left: 6px solid #ffc107; }

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Make the whole card clickable */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.card-link:hover { text-decoration: none; }

/* ======== Details Pages (RamapoBot, WatchDogBot, Minecraft, etc.) ======== */
h1, h2, h3 {
    text-align: center;
    color: #eaeaea;
}

section {
    margin: 40px auto;
    max-width: 1200px;
    background: #141414;
    padding: 20px;
    border-radius: 12px;
}

/* ======== Leaderboard Layout ======== */
.leaderboard-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 20px;
}

.leaderboard-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    flex: 1 1 420px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    line-height: 1.3;
}

.leaderboard-card h3,
.leaderboard-card p {
    margin: 5px 0;
}

.leaderboard-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ======== Tables ======== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #eaeaea;
    font-size: 14px;
    table-layout: fixed;
}

th, td {
    border-bottom: 1px solid #333;
    padding: 8px 10px;
    text-align: left;
    word-break: break-word;
}

th {
    background: #2a2a2a;
    font-weight: bold;
    color: #00cc88;
}

tr:hover { background-color: #292929; }

/* ======== Charts ======== */
canvas {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 10px;
    max-width: 100%;
}

/* ======== Links ======== */
a {
    color: #00cc88;
    text-decoration: none;
    margin-left: 20px;
}
a:hover { text-decoration: none; }

