* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #1d2939;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.dashboard {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    background: #111827;
    color: white;
    padding: 25px 15px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    margin-bottom: 35px;
}

.logo span {
    display: block;
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 3px;
    margin-top: 4px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

nav a {
    text-decoration: none;
    color: #cbd5e1;
    padding: 13px 15px;
    border-radius: 8px;
}

nav a:hover,
nav a.active {
    background: #1f2937;
    color: white;
}

.logout-button {
    position: absolute;
    bottom: 25px;
    right: 15px;
    left: 15px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #dc2626;
    color: white;
}

.main-content {
    width: calc(100% - 240px);
    margin-right: 240px;
    padding: 35px;
}

.topbar {
    margin-bottom: 30px;
}

.topbar h1 {
    margin: 0 0 8px;
}

.topbar p {
    margin: 0;
    color: #667085;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card span {
    display: block;
    color: #667085;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 30px;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.section-header h2 {
    margin: 0 0 7px;
}

.section-header p {
    margin: 0;
    color: #667085;
}

.primary-button {
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    background: #2563eb;
    color: white;
}

.services-table {
    width: 100%;
}

.service-header,
.service-row {
    display: grid;
    grid-template-columns:
        70px
        minmax(250px, 1fr)
        120px
        150px
        150px;

    gap: 15px;
    align-items: center;
    padding: 15px;
}

.service-header {
    background: #f8fafc;
    font-weight: bold;
    color: #475467;
    border-radius: 8px;
}

.service-row {
    border-bottom: 1px solid #eaecf0;
}

.service-title strong {
    display: block;
    margin-bottom: 5px;
}

.service-title span {
    display: block;
    color: #98a2b3;
    font-size: 13px;
}

.service-views {
    color: #475467;
}

.service-date {
    color: #667085;
    font-size: 14px;
}

.service-actions {
    display: flex;
    gap: 7px;
}

.service-actions button {
    padding: 7px 10px;
    border: 1px solid #d0d5dd;
    background: white;
    border-radius: 6px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
}

.pagination button {
    min-width: 35px;
    height: 35px;
    border: 1px solid #d0d5dd;
    background: white;
    border-radius: 6px;
}

.pagination button.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.loading,
.empty-state,
.error-message {
    padding: 40px;
    text-align: center;
}

.error-message {
    color: #dc2626;
}

@media (max-width: 900px) {

    .sidebar {
        width: 200px;
    }

    .main-content {
        width: calc(100% - 200px);
        margin-right: 200px;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
        margin-right: 0;
    }

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

    .service-header {
        display: none;
    }

    .service-row {
        display: block;
        padding: 20px 5px;
    }

    .service-row > div {
        margin-bottom: 10px;
    }

}

