html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, #212529 0%, #343a40 70%);
}

.top-row {
    background-color: #343a40;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row ::deep a {
    color: white;
}

.top-row ::deep .navbar-brand {
    font-size: 1.1rem;
}

.nav-scrollable {
    display: none;
}

.nav-scrollable ::deep .nav-link {
    color: #d7d7d7;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.nav-scrollable ::deep .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-scrollable ::deep .nav-link.active {
    background-color: rgba(255, 255, 255, 0.37);
    color: white;
}

.content {
    padding-top: 1.1rem;
}

@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .nav-scrollable {
        display: block;
        position: sticky;
        top: 3.5rem;
    }
}

/* Custom styles for KidsPlay */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.badge {
    font-weight: 500;
}

.progress {
    border-radius: 0.5rem;
}

.table th {
    font-weight: 600;
    color: #495057;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Modal backdrop */
.modal.show.d-block {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stats cards */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info {
    border: none;
}

.card.bg-primary h2, .card.bg-success h2, .card.bg-warning h2, .card.bg-info h2 {
    font-size: 2.5rem;
    font-weight: 300;
}
