/* Confluence Theme CSS */
:root {
    --primary-color: #0052cc;
    --primary-hover: #0747a6;
    --text-color: #172b4d;
    --light-text: #5e6c84;
    --border-color: #dfe1e6;
    --background: #f4f5f7;
    --white: #ffffff;
    --error-color: #de350b;
    --green: #36b37e;
    --yellow: #ffab00;
    --header-height: 56px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.5;
    font-size: 14px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    flex: 0 0 auto;
    margin-right: 6px;
}

.confluence-logo {
    height: 16px;
}

.header-navigation {
    flex: 1;
    margin-left: 20px;
}

.header-navigation ul {
    display: flex;
    list-style: none;
}

.header-navigation li {
    margin-right: 16px;
}

.header-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 3px;
}

.header-navigation a.active,
.header-navigation a:hover {
    background-color: var(--background);
    text-decoration: none;
}

.header-navigation a.create-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
}

.header-navigation a.create-btn:hover {
    background-color: var(--primary-hover);
}

.header-search {
    margin: 0 16px;
    position: relative;
    flex: 0 0 200px;
}

.header-search input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: var(--background);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
}

.header-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 8px;
}

.product-version {
    color: var(--light-text);
    font-size: 12px;
}

/* Login Page Styles */
.login-page {
    background-color: var(--background);
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 0 20px;
}

.login-panel {
    background-color: var(--white);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 32px;
}

.login-panel h1 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.form-description {
    margin-bottom: 20px;
    color: var(--light-text);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.form-actions {
    margin-top: 24px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-left: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

.form-links {
    margin-top: 16px;
    text-align: center;
}

/* Error message for login failures */
.error-message {
    background-color: #ffebe6;
    border: 1px solid #ff8f73;
    color: #de350b;
    padding: 12px;
    border-radius: 3px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 13px;
}

/* Page Layout with footer fix */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    display: flex;
    padding: 20px;
    flex: 1;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    background-color: var(--white);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 24px;
    margin-bottom: 20px;
}

/* Main Layout Styles */
.sidebar {
    flex: 0 0 250px;
    background-color: var(--white);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 16px;
    margin-right: 20px;
}

.spaces-list h3 {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.spaces-list ul {
    list-style: none;
}

.spaces-list li {
    margin-bottom: 8px;
}

.spaces-list a {
    color: var(--text-color);
    display: block;
    padding: 6px 8px;
    border-radius: 3px;
}

.spaces-list a:hover {
    background-color: var(--background);
    text-decoration: none;
}

/* Dashboard Content */
.welcome-panel {
    background-color: #e6fcff;
    border-radius: 3px;
    padding: 24px;
    margin-bottom: 24px;
}

.welcome-panel h1 {
    font-size: 20px;
    margin-bottom: 8px;
}

.recent-updates h2 {
    font-size: 16px;
    margin-bottom: 16px;
}

.update-item {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
}

.update-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 16px;
    flex-shrink: 0;
}

.update-header {
    margin-bottom: 4px;
}

.update-user {
    font-weight: 500;
}

.update-action, .update-time {
    color: var(--light-text);
}

.update-page {
    font-weight: 500;
}

.update-summary {
    color: var(--text-color);
}

/* Public pages */
.public-page .header-right {
    margin-left: auto;
}

.public-content {
    max-width: 800px;
    margin: 0 auto;
}

.public-content h1 {
    font-size: 24px;
    margin-bottom: 16px;
}

.public-content h2 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.public-content p, .public-content ul {
    margin-bottom: 16px;
}

.public-content ul {
    margin-left: 32px;
}

.help-section {
    margin-bottom: 24px;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    font-weight: 500;
}

.btn-login:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* Footer Styles */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-links {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.footer-links a {
    margin: 0 8px;
    color: var(--light-text);
    font-size: 12px;
}

.footer-copyright {
    color: var(--light-text);
    font-size: 12px;
}

.powered-by {
    margin-top: 4px;
}

