/* Backbone MRP User Guide Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.logo {
    text-align: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

.logo h2 {
    color: #3498db;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    color: #bdc3c7;
    font-size: 14px;
}

.nav-menu {
    list-style: none;
    padding: 0 20px;
}

.nav-menu > li {
    margin-bottom: 5px;
}

.nav-menu a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #3498db;
    color: white;
}

.nav-section {
    margin: 20px 0 10px 0;
}

.section-title {
    color: #95a5a6;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px 5px;
    display: block;
}

.sub-menu {
    list-style: none;
    margin-left: 15px;
}

.sub-menu li {
    margin-bottom: 2px;
}

.sub-menu a {
    padding: 8px 15px;
    font-size: 13px;
}

/* Main Content */
.content {
    margin-left: 280px;
    flex: 1;
    padding: 0;
    background: white;
}

.page-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 40px 50px;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 18px;
    color: #ecf0f1;
    font-weight: 300;
}

/* Content Sections */
.intro-section,
.quick-start,
.help-section,
.feature-section {
    padding: 40px 50px;
    max-width: 1200px;
}

.intro-section h2,
.quick-start h2,
.help-section h2,
.feature-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 400;
}

.intro-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.btn:hover {
    background: #2980b9;
}

/* Quick Start Steps */
.quick-steps {
    list-style: none;
    counter-reset: step-counter;
}

.quick-steps li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    position: relative;
}

.quick-steps li::before {
    content: counter(step-counter);
    position: absolute;
    top: -10px;
    left: -10px;
    background: #27ae60;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.quick-steps h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.quick-steps p {
    color: #555;
    margin-bottom: 10px;
}

.quick-steps a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.quick-steps a:hover {
    text-decoration: underline;
}

/* Help Section */
.help-section {
    background: #f8f9fa;
    margin-top: 40px;
}

.help-section ul {
    list-style-position: inside;
    color: #555;
}

.help-section li {
    margin-bottom: 8px;
}

/* Content Specific Styles */
.content-section {
    padding: 40px 50px;
}

.content-section h3 {
    color: #2c3e50;
    margin: 30px 0 15px 0;
    font-size: 22px;
}

.content-section h4 {
    color: #34495e;
    margin: 20px 0 10px 0;
    font-size: 18px;
}

.content-section p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-section ul {
    margin: 15px 0 15px 20px;
}

.content-section li {
    color: #555;
    margin-bottom: 8px;
}

/* Code and Pre-formatted Text */
code {
    background: #f1f2f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    overflow-x: auto;
    margin: 20px 0;
}

/* Screenshots and Images */
.screenshot {
    margin: 20px 0;
    text-align: center;
}

.screenshot-placeholder {
    background: #ecf0f1;
    border: 2px dashed #bdc3c7;
    padding: 40px 20px;
    border-radius: 8px;
    color: #7f8c8d;
    margin: 20px 0;
}

.screenshot img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* Alerts and Callouts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #ef6c00;
}

.alert-success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
    }
    
    .page-header,
    .intro-section,
    .quick-start,
    .help-section,
    .content-section {
        padding: 20px 25px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}

/* Application Tab Navigation (mirrors SWT tab bar) */
.app-tabs {
    display: flex;
    background: #ecf0f1;
    border-bottom: 3px solid #3498db;
    padding: 10px 50px 0;
    flex-wrap: wrap;
    gap: 3px;
}

.app-tabs a {
    display: inline-block;
    padding: 10px 22px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    background: #dde4ea;
    border: 1px solid #bdc3c7;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.app-tabs a:hover {
    background: #c8d6e0;
    color: #2c3e50;
}

.tab-section {
    padding: 35px 50px 40px;
    border-left: 4px solid #3498db;
    background: white;
    margin-bottom: 3px;
    scroll-margin-top: 20px;
}

.tab-section + .tab-section {
    border-top: 1px solid #ecf0f1;
}

.tab-section-label {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.tab-section h2 {
    color: #2c3e50;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ecf0f1;
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .content {
        margin-left: 0;
    }
    
    .page-header {
        background: none !important;
        color: black !important;
    }
}