/* LOCAS User Guide Styles */
:root {
    --locas-primary: #0f766e;
    --locas-primary-light: #11998e;
    --locas-secondary: #64748b;
    --locas-success: #10b981;
    --locas-warning: #f59e0b;
    --locas-danger: #ef4444;
    --locas-info: #3b82f6;
}

/* General Layout */
.guide-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    min-height: 100vh;
}

.guide-header {
    background: linear-gradient(135deg, var(--locas-primary) 0%, var(--locas-primary-light) 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

/* Ministry branding above title */
.ministry-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.ministry-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.ministry-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.95;
}

.guide-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.guide-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Navigation */
.guide-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 10px;
    z-index: 100;
}

.guide-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-nav a {
    display: inline-block;
    padding: 10px 20px;
    background: #f1f5f9;
    color: var(--locas-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.guide-nav a:hover {
    background: var(--locas-primary);
    color: white;
}

/* Content Sections */
.guide-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.guide-section h2 {
    color: var(--locas-primary);
    border-bottom: 3px solid var(--locas-primary);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.guide-section h3 {
    color: #334155;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Step Cards */
.step-card {
    background: #f8fafc;
    border-left: 4px solid var(--locas-primary);
    padding: 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.step-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--locas-primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

.step-card h4 {
    display: inline;
    color: #1e293b;
}

.step-card p {
    margin: 10px 0 0 42px;
    color: #64748b;
}

/* Flowchart Styles */
.flowchart-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    overflow-x: auto;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flow-node {
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    min-width: 200px;
    position: relative;
}

.flow-start, .flow-end {
    background: linear-gradient(135deg, var(--locas-primary) 0%, var(--locas-primary-light) 100%);
    color: white;
    border-radius: 25px;
}

.flow-process {
    background: white;
    border: 2px solid var(--locas-primary);
    color: #1e293b;
}

.flow-decision {
    background: #fef3c7;
    border: 2px solid var(--locas-warning);
    color: #92400e;
    transform: rotate(0deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    padding: 30px 40px;
}

.flow-arrow {
    color: var(--locas-secondary);
    font-size: 24px;
}

/* Horizontal Flow */
.flow-horizontal {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-horizontal .flow-arrow {
    transform: rotate(0deg);
}

/* Info Boxes */
.info-box {
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.info-box.tip {
    background: #ecfdf5;
    border-left: 4px solid var(--locas-success);
}

.info-box.warning {
    background: #fffbeb;
    border-left: 4px solid var(--locas-warning);
}

.info-box.note {
    background: #eff6ff;
    border-left: 4px solid var(--locas-info);
}

.info-box h5 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box.tip h5 { color: #059669; }
.info-box.warning h5 { color: #d97706; }
.info-box.note h5 { color: #2563eb; }

/* Tables */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.guide-table th {
    background: var(--locas-primary);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.guide-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.guide-table tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-draft { background: #f1f5f9; color: #64748b; }
.status-submitted { background: #dbeafe; color: #1d4ed8; }
.status-approved { background: #d1fae5; color: #059669; }
.status-rejected { background: #fee2e2; color: #dc2626; }

/* Screenshots placeholder */
.screenshot-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    color: #64748b;
    margin: 20px 0;
    border: 2px dashed #94a3b8;
}

/* Quick Reference Cards */
.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.quick-ref-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.quick-ref-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.quick-ref-card h4 {
    color: var(--locas-primary);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-ref-card p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

/* Print Styles */
@media print {
    .guide-nav {
        display: none;
    }
    
    .guide-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .guide-header {
        padding: 30px 20px;
    }
    
    .guide-header h1 {
        font-size: 1.8rem;
    }
    
    .guide-nav ul {
        flex-direction: column;
    }
    
    .flow-horizontal {
        flex-direction: column;
    }
    
    .flow-horizontal .flow-arrow {
        transform: rotate(90deg);
    }
}

/* SVG Flowchart Styles */
.flowchart-svg {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    display: block;
}

.flowchart-svg text {
    font-family: 'Segoe UI', sans-serif;
}

/* Accordion for FAQ */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background: #f8fafc;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-content {
    padding: 20px;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* URL/Path highlights */
code.url-path {
    background: #1e293b;
    color: #10b981;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

/* Module cards */
.module-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.module-card-header {
    padding: 25px;
    color: white;
}

.module-card-header.procurement {
    background: linear-gradient(135deg, #0f766e 0%, #11998e 100%);
}

.module-card-header.employment {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.module-card-header.suppliers {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.module-card-header.sdp {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.module-card-body {
    padding: 20px;
}

.module-card-body ul {
    margin: 0;
    padding-left: 20px;
}

.module-card-body li {
    margin-bottom: 8px;
    color: #64748b;
}
