/* Base styles for OSN LabBook */
html {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
}

a {
    color: #0070f3;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header .logo {
    margin: 0;
    font-size: 1.5rem;
}
.navigation {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.navigation a.btn {
    padding: 0.5rem 1rem;
    border: 1px solid #0070f3;
    border-radius: 4px;
    background: #0070f3;
    color: #fff;
    transition: background 0.2s;
}
.navigation a.btn:hover {
    background: #005bb5;
}
.home-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #222;
}
.home-account-link:hover {
    text-decoration: none;
}
.home-avatar {
    display: inline-grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 50%;
    background: #0f766e;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}
.home-account-text {
    display: grid;
    line-height: 1.15;
    max-width: 11rem;
}
.home-account-text span {
    overflow: hidden;
    color: #5f6b7a;
    font-size: 0.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-account-text strong {
    color: #0070f3;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #eaeaea;
    padding: 1rem 0;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #0070f3;
    border-radius: 4px;
    background: #0070f3;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover {
    background: #005bb5;
}
.btn.primary {
    background: #0070f3;
}
.btn.primary:hover {
    background: #005bb5;
}

/* Sidebar layout for app pages */
.app-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #eaeaea;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.sidebar h2 {
    margin-top: 0;
}
.app-logo {
    color: #222;
}
.app-logo:hover {
    color: #0070f3;
    text-decoration: none;
}
.sidebar nav a {
    display: block;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    color: #333;
}
.sidebar nav a.active {
    font-weight: bold;
    color: #0070f3;
}
.account-panel {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
}
.account-user {
    display: grid;
    gap: 0.2rem;
    margin: 0 0 0.75rem;
    color: #5f6b7a;
    font-size: 0.9rem;
    word-break: break-word;
}
.account-link {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.45rem;
}
.account-link:hover {
    background: #f4f8ff;
    border-color: #d7e7ff;
    text-decoration: none;
}
.account-link strong {
    color: #222;
    font-size: 0.85rem;
}
.account-actions {
    display: grid;
    gap: 0.5rem;
}
.btn.secondary {
    background: #fff;
    color: #0070f3;
}
.btn.secondary:hover {
    background: #eef6ff;
}
.btn.danger {
    border-color: #b00020;
    background: #b00020;
    color: #fff;
}
.btn.danger:hover {
    background: #850018;
}
.content {
    flex-grow: 1;
    padding: 1rem;
}

@media (max-width: 760px) {
    .header .container {
        align-items: flex-start;
        flex-direction: column;
    }
    .navigation {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
label {
    font-weight: bold;
    margin-top: 0.5rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
}
textarea {
    resize: vertical;
    min-height: 80px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    border: 1px solid #eaeaea;
    padding: 0.5rem;
    text-align: left;
}
th {
    background-color: #f5f5f5;
}
