/* Reset & Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f9f9fb;
    color: #333;
}

#blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f44336;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

    #blazor-error-ui a {
        color: white;
        margin: 0 1rem;
        text-decoration: underline;
        cursor: pointer;
    }

.loading-progress {
    width: 80px;
    height: 80px;
    margin: 100px auto;
    display: block;
    animation: rotate 2s linear infinite;
}

    .loading-progress circle {
        fill: none;
        stroke-width: 5;
        stroke: #007bff;
        stroke-linecap: round;
        animation: dash 1.5s ease-in-out infinite;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}
/* Page Layout */
.page {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    min-width: 220px;
    max-width: 260px;
    background-color: #f1f1f1;
    border-right: 1px solid #ccc;
    padding: 1rem;
    overflow-y: auto;
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* User Info */
.user-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    font-size: 1.5rem;
}

/* Content Area */
.content {
    padding: 1rem 2rem;
    overflow-y: auto;
}

/* Buttons */
button {
    cursor: pointer;
}

    button.btn {
        padding: 0.5rem 1rem;
        border-radius: 6px;
    }

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Sidebar Toggle (Mobile) */
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    margin: 0.5rem;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1000;
}

@media (min-width: 768px) {
    .sidebar-toggle {
        display: none;
    }
}

/* Lists */
ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background-color: #eaf4ff;
    border: 1px solid #b3d8ff;
    color: #1b4e80;
}

/* Utility */
.mt-2 {
    margin-top: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 767.98px) {
    .top-bar .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sidebar-toggle {
        margin-bottom: 0.25rem;
    }

    .family-name {
        display: none !important;
    }
}
