/* styles.css */

/* Basic Reset & Font */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background-color: #f4f5f7; /* Confluence-like background */
    color: #172B4D; /* Default text color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #0052CC; /* Confluence link blue */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- Header --- */
.confluence-header {
    background-color: #fff;
    border-bottom: 1px solid #dfe1e6;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
}
.header-logo {
    font-weight: bold;
    font-size: 1.2em;
    color: #2684FF; /* Atlassian Blue */
    margin-right: 20px;
}
.header-search {
    background-color: #f4f5f7;
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    padding: 5px 10px;
    min-width: 200px;
}
.header-button {
    background-color: #0052CC;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 6px 12px;
    margin-left: 10px;
    cursor: pointer;
}
.header-icon {
    margin-left: 15px;
    font-size: 1.3em;
    color: #42526E;
    cursor: pointer;
}
.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #dfe1e6;
    border-radius: 50%;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #42526E;
    cursor: pointer;
}

/* --- Main Layout --- */
.confluence-body {
    display: flex;
    flex-grow: 1;
}

/* --- Sidebar --- */
.confluence-sidebar {
    width: 240px;
    background-color: #fff;
    border-right: 1px solid #dfe1e6;
    padding: 20px 0;
    height: calc(100vh - 56px); /* Full height minus header */
    position: sticky;
    top: 56px; /* Stick below header */
    overflow-y: auto;
}
.sidebar-space {
    display: flex;
    align-items: center;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid #f4f5f7;
    margin-bottom: 15px;
}
.space-logo {
    width: 24px;
    height: 24px;
    background-color: #0052CC;
    border-radius: 3px;
    margin-right: 10px;
}
.space-name {
    font-weight: bold;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li a {
    display: block;
    padding: 8px 20px;
    color: #42526E;
}
.sidebar-nav li a:hover, .sidebar-nav li.active a {
    background-color: #e6f0ff; /* Light blue hover/active */
    color: #0052CC;
    font-weight: 500;
}
.sidebar-nav .app-link { /* Style for app links */
     padding-left: 35px; /* Indent app links */
}
.sidebar-section-title {
    padding: 15px 20px 5px 20px;
    font-size: 0.9em;
    color: #5E6C84;
    text-transform: uppercase;
    font-weight: bold;
}


/* --- Main Content Area --- */
.confluence-main-content {
    flex-grow: 1;
    padding: 30px 40px;
    background-color: #fff;
    max-width: 900px; /* Typical content width */
    margin: 20px auto; /* Center content area */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 3px;
}

.breadcrumbs {
    font-size: 0.9em;
    color: #5E6C84;
    margin-bottom: 15px;
}
.breadcrumbs a {
    color: #5E6C84;
}

.page-title {
    font-size: 2.1em;
    font-weight: 500;
    margin-bottom: 10px;
    color: #172B4D;
}

.page-metadata {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: #5E6C84;
    font-size: 0.9em;
}
.author-avatar {
    width: 24px;
    height: 24px;
    background-color: #ffab00; /* Example color */
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.8em;
}

.page-actions {
    margin-bottom: 30px;
    border-bottom: 1px solid #dfe1e6;
    padding-bottom: 20px;
}
.action-button {
    background-color: #f4f5f7;
    color: #42526E;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 5px 10px;
    margin-right: 8px;
    cursor: pointer;
}
.action-button:hover {
    background-color: #dfe1e6;
}
.action-button.primary {
     background-color: #0052CC;
     color: white;
}

/* --- Addon Placeholder & Marketing Content --- */
.page-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
 .page-content p, .page-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
 }
 .page-content ul {
     padding-left: 20px;
 }
 .page-content li {
     margin-bottom: 8px;
 }

#advanced-content-navigator-addon {
    border: 2px dashed #0052CC;
    background-color: #e6f0ff;
    height: 800px; /* Consider if this fixed height is always desired */
    padding: 5px;
    margin: 30px 0;
    border-radius: 5px;
    /* Removed text-align, font-style, color as iframe likely fills it */
}
/* Removed #advanced-content-navigator-addon p rule as it might conflict */

/* --- Placeholder Sections --- */
.placeholder-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dfe1e6;
}
.placeholder-section h3 {
    font-size: 1.2em;
    color: #5E6C84;
    margin-bottom: 15px;
}
.placeholder-content {
    background-color: #f4f5f7;
    border: 1px solid #dfe1e6;
    padding: 15px;
    border-radius: 3px;
    color: #5E6C84;
    font-size: 0.9em;
}

/* --- Footer --- */
.confluence-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
    color: #5E6C84;
    background-color: #f4f5f7;
    margin-top: auto; /* Pushes footer to bottom */
}

/* --- Iframe Styling --- */
#advanced-content-navigator-addon iframe {
    width: 100%;      /* Make iframe fill the parent's content width */
    height: 100%;     /* Make iframe fill the parent's height */
    border: none;      /* Remove the default iframe border */
    display: block;    /* Ensure proper block layout */
    vertical-align: bottom; /* Helps align within padding */
}
