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

body {
    background: #0d1117;
    color: #e6edf3;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 25px;
}


/* HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 55px;
}

h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -2px;
}

h1 span {
    color: #58a6ff;
}

header p {
    color: #8b949e;
    margin-top: 5px;
}

.system-status {
    font-size: 13px;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* SECTIONS */

section {
    margin-bottom: 45px;
}

h2 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b949e;
    margin-bottom: 18px;
}


/* SERVICE GRID */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}


/* SERVICE CARD */

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;

    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;

    padding: 24px;

    transition: all 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: #58a6ff;
    background: #1c2128;
}


/* ICON */

.service-icon {
    font-size: 28px;
    margin-bottom: 20px;
}


/* TEXT */

.service-name {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-description {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 20px;
}


/* STATUS */

.service-status {
    font-size: 12px;
    color: #8b949e;

    display: flex;
    align-items: center;
    gap: 7px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #3fb950;
    border-radius: 50%;
    display: inline-block;
}


/* FOOTER */

footer {
    text-align: center;
    color: #484f58;
    font-size: 12px;
    margin-top: 70px;
}


/* MOBILE */

@media (max-width: 600px) {

    .container {
        padding: 25px 15px;
    }

    header {
        margin-bottom: 40px;
    }

    h1 {
        font-size: 34px;
    }

    .system-status {
        display: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Section header */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

.section-header a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 14px;
}

.section-header a:hover {
    text-decoration: underline;
}


/* Dashboard widgets */

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dashboard-widget {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px;
}

.dashboard-widget h2 {
    margin-top: 0;
}

.dashboard-widget p {
    color: #8b949e;
}


/* Mobile */

@media (max-width: 700px) {

    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: flex-start;
        gap: 10px;
    }

}

/* Admin */

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;

    padding: 15px 20px;
}

.admin-details {
    color: #8b949e;
    font-size: 13px;
    margin-top: 5px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-actions a {
    color: #58a6ff;
    text-decoration: none;
}

.admin-actions a:hover {
    text-decoration: underline;
}

.home-badge {
    color: #3fb950;
    font-size: 13px;
}


/* Admin form */

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    max-width: 600px;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    color: #c9d1d9;
    font-weight: 500;
}

.admin-form input,
.admin-form select {
    background: #0d1117;
    color: #c9d1d9;

    border: 1px solid #30363d;
    border-radius: 6px;

    padding: 10px;
    font-size: 15px;
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: #58a6ff;
}

.checkbox-label {
    flex-direction: row !important;
    align-items: center;
}

.checkbox-label input {
    width: auto;
}

.admin-form button {
    background: #238636;
    color: white;

    border: none;
    border-radius: 6px;

    padding: 10px 16px;

    font-size: 15px;
    cursor: pointer;
}

.admin-form button:hover {
    opacity: 0.9;
}

.delete-button {
    background: none;
    border: none;
    padding: 0;

    color: #f85149;
    font-size: 14px;
    cursor: pointer;
}

.delete-button:hover {
    text-decoration: underline;
}


.admin-error {
    background: #3d1f1f;
    border: 1px solid #f85149;
    color: #f85149;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
}
