/* Base styles */
:root {
    --primary-color: #1B3A5B;    /* Deep scholarly blue */
    --secondary-color: #2C5282;  /* Rich blue */
    --accent-color: #4A6FA5;     /* Muted blue */
    --background-color: #F8FAFC; /* Light cool gray */
    --text-color: #2D3748;       /* Dark gray for readability */
    --light-text: #718096;       /* Muted text */
    --white: #ffffff;
    --border-color: #E2E8F0;
    --viewer-width: 400px;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Preview Banner */
.preview-banner {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Headers */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.4;
    color: var(--primary-color);
}

h1 {
    font-size: 2.4em;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.8em;
    margin: 2rem 0 1.5rem;
    text-align: left;
}

h3 {
    font-size: 1.3em;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Section Cards */
.section-card {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Buttons and Links */
.btn, .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.95em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.nav-link {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.complete-btn {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    padding: 1rem 2rem;
}

.complete-btn:hover {
    background-color: var(--secondary-color);
}

/* Content Sections */
.content-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Review Sections */
.review-section {
    background: var(--white);
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.review-section ul li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.review-section ul li::before {
    color: var(--accent-color);
}

/* Action Plan */
.action-plan {
    background: var(--primary-color);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 6px;
    margin-top: 3rem;
}

.action-plan h2 {
    color: var(--white);
    margin-top: 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    color: var(--light-text);
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    margin-top: 40px;
    transition: margin-right 0.3s ease;
}

.main-content.viewer-open {
    margin-right: var(--viewer-width);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Grid */
.handbook-sections {
    margin-top: 2rem;
}

/* Format Links */
.format-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Text Viewer */
.text-viewer {
    position: fixed;
    top: 40px;
    right: -100%;  /* Start completely off-screen */
    width: var(--viewer-width);
    height: calc(100vh - 40px);
    background: var(--white);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 900;
    display: flex;
    flex-direction: column;
    visibility: hidden; /* Hide initially */
}

.text-viewer.open {
    right: 0;
    visibility: visible;
}

.viewer-header {
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2em;
    padding: 0.5rem;
}

.viewer-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.95em;
    line-height: 1.6;
    white-space: pre-wrap;
    font-family: monospace;
    background: var(--background-color);
}

/* Technical Details */
.technical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.technical-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.technical-details ul {
    list-style-type: none;
    padding-left: 0;
}

.technical-details ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.technical-details ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Navigation */
.main-nav {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Review Guide Styles */
.review-section {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.review-section h3 {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.review-section h3:first-child {
    margin-top: 0;
}

.review-section ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.review-section ul li {
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.review-section ul li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
}

.action-plan {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    margin-top: 3rem;
}

.action-plan h2 {
    color: var(--white);
    margin-top: 0;
}

.action-plan p {
    margin-bottom: 1rem;
}

.action-plan p:last-child {
    margin-bottom: 0;
}

/* Timeline Styles */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Progress Items */
.progress-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 4px;
    background: var(--background-color);
}

.progress-item.completed {
    border-left: 4px solid #2ecc71;
}

.progress-item.in-progress {
    border-left: 4px solid #f1c40f;
}

.progress-item.pending {
    border-left: 4px solid var(--accent-color);
}

.progress-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.progress-item ul {
    list-style-type: none;
    padding-left: 0;
}

.progress-item ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.progress-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Action Items */
.action-items ol {
    padding-left: 1.2rem;
}

.action-items ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* New Structure */
.new-structure ol {
    list-style-type: none;
    counter-reset: item;
    padding-left: 0;
}

.new-structure ol > li {
    counter-increment: item;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.new-structure ol > li::before {
    content: counter(item) ".";
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.new-structure ul {
    list-style-type: none;
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.new-structure ul li {
    font-weight: normal;
    margin-bottom: 0.3rem;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --viewer-width: 100%;
    }

    .main-content.viewer-open {
        margin-right: 0;
    }

    .text-viewer {
        width: 100%;
    }

    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: 1.2rem;
    }
} 

.complete-handbook {
    text-align: center;
    margin: 1rem 0 2rem;
}

/* Content Section Styles */
.content-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* Timeline Styles */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Progress Items */
.progress-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 4px;
    background: var(--background-color);
}

.progress-item.completed {
    border-left: 4px solid #2ecc71;
}

.progress-item.in-progress {
    border-left: 4px solid #f1c40f;
}

.progress-item.pending {
    border-left: 4px solid var(--accent-color);
}

.progress-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.progress-item ul {
    list-style-type: none;
    padding-left: 0;
}

.progress-item ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.progress-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Action Items */
.action-items ol {
    padding-left: 1.2rem;
}

.action-items ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* New Structure */
.new-structure ol {
    list-style-type: none;
    counter-reset: item;
    padding-left: 0;
}

.new-structure ol > li {
    counter-increment: item;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.new-structure ol > li::before {
    content: counter(item) ".";
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.new-structure ul {
    list-style-type: none;
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.new-structure ul li {
    font-weight: normal;
    margin-bottom: 0.3rem;
    color: var(--light-text);
}

/* Technical Details */
.technical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.technical-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.technical-details ul {
    list-style-type: none;
    padding-left: 0;
}

.technical-details ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.technical-details ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Navigation */
.main-nav {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Review Guide Styles */
.review-section {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.review-section h3 {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.review-section h3:first-child {
    margin-top: 0;
}

.review-section ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.review-section ul li {
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.review-section ul li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
}

.action-plan {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    margin-top: 3rem;
}

.action-plan h2 {
    color: var(--white);
    margin-top: 0;
}

.action-plan p {
    margin-bottom: 1rem;
}

.action-plan p:last-child {
    margin-bottom: 0;
}

/* Add to existing styles */

.migration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.migration-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.migration-card:hover {
    transform: translateY(-5px);
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.old, .new {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.new {
    border-left: 4px solid #007bff;
}

.old {
    border-left: 4px solid #6c757d;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button.primary {
    background: #007bff;
    color: white;
}

.highlight {
    border: 2px solid #007bff;
}

/* Update existing styles */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
}

.button:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
} 