/* Manual page specific styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation - reuse from home.css */
.navbar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Manual container layout */
.manual-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #007bff;
    font-weight: 600;
    font-size: 1.2rem;
}

.toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.toc a:hover {
    background: #f0f8ff;
    color: #007bff;
    transform: translateX(4px);
}

/* Main content */
.content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #007bff;
    display: inline-block;
}

.section-content {
    font-size: 1rem;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content ul, .section-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

/* Info boxes */
.info-box {
    background: #f0f8ff;
    border: 1px solid #007bff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #007bff;
    font-weight: 600;
}

.info-box.warning h4 {
    color: #856404;
}

/* Step guide */
.step-guide {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.step-content .tip {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.step-content .warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Calendar legend */
.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background: #d4edda;
    border: 2px solid #28a745;
}

.legend-color.booked {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.legend-color.closed {
    background: #e2e3e5;
    border: 2px solid #6c757d;
}

/* Tips grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tip-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #007bff;
    font-weight: 600;
}

/* Troubleshooting */
.trouble-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #17a2b8;
}

.trouble-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #17a2b8;
    font-weight: 600;
}

.trouble-item p strong {
    color: #333;
}

/* Help section */
.help-section {
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.help-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-secondary {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .manual-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-legend {
        justify-content: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 1.5rem;
    }
}