/* Variables */
:root {
    --primary: #C04F18;
    --secondary: #0c2f55;
    --dark: #535b61;
    --light: #f8f9fa;
}

/* General */
body {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #4c4d4d;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 1090;
}

.lds-ellipsis {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Header */
#header {
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 1040;
}

.primary-menu {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
.idocs-navigation {
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    width: 260px;
    background: #fff;
    border-right: 1px solid #eeeeee;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Documentation Type Selector */
.documentation-type {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.documentation-type .btn {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.documentation-type .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.documentation-type .btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.documentation-type .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.documentation-type .btn-primary:hover {
    background-color: darken(var(--primary), 10%);
    border-color: darken(var(--primary), 10%);
}

.navbar-nav .nav-link {
    padding: 1rem 1.25rem;
    color: #535b61;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0;
    outline: none;
}

.navbar-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background: #535b61;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Content Area */
.idocs-content {
    margin-left: 260px;
    padding: 85px 3rem 3rem 3rem;
}

/* Typography */
h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Code Blocks */
.code-wrapper {
    position: relative;
    background: #2d2d2d;
    border-radius: 5px;
    margin: 1rem 0;
}

pre {
    padding: 1.5rem;
    margin: 0;
    white-space: pre-wrap;
}

pre code {
    color: #f8f8f2;
    font-size: 14px;
    line-height: 1.5;
}

/* Project Structure */
.project-structure {
    color: #333 !important;
    background: transparent !important;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.dark .project-structure {
    color: #f3f4f6 !important;
}

.project-structure code {
    background: transparent !important;
    padding: 0;
    color: inherit;
}

/* Cards */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    font-size: 14px;
    padding: 15px 20px;
    margin-bottom: 1.5rem;
    border: 0;
    border-radius: 5px;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

/* Images */
.img-fluid {
    border-radius: 5px;
    margin: 1rem 0;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1039;
    display: none;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 3px;
    transition: all .3s ease-in-out;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

#back-to-top:hover {
    background: var(--secondary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .idocs-navigation {
        left: -260px;
        transition: all 0.3s ease-in-out;
    }
    
    .idocs-content {
        margin-left: 0;
        padding: 85px 1rem 1rem;
    }
    
    .nav-open .idocs-navigation {
        left: 0;
    }
}

/* Print Styles */
@media print {
    .idocs-navigation,
    #back-to-top {
        display: none !important;
    }
    
    .idocs-content {
        margin-left: 0;
        padding: 0;
    }
}

/* Additional styles from iDocs... */

/* Diagram Containers */
.mermaid {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 1rem 0;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
}

/* Mermaid diagram specific styles */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon,
.mermaid .node path {
    stroke-width: 2px;
    rx: 5px;
    ry: 5px;
}

.mermaid .node.start rect {
    fill: var(--primary) !important;
    stroke: var(--primary) !important;
}

.mermaid .node.store rect {
    fill: #2dbe60 !important;
    stroke: #2dbe60 !important;
}

.mermaid .edgePath {
    stroke-width: 2px !important;
}

/* Dark mode adjustments */
.dark .mermaid {
    background: #1F2937;
}

/* Diagram text */
.mermaid text {
    font-family: "Inter", sans-serif !important;
    font-size: 14px !important;
}

/* Diagram nodes */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon {
    fill: #F3F4F6;
    stroke: #E5E7EB;
    stroke-width: 1px;
}

/* Diagram arrows */
.mermaid .arrowheadPath {
    fill: #9CA3AF;
    stroke: #9CA3AF;
}

.mermaid .edgePath .path {
    stroke: #9CA3AF;
    stroke-width: 1.5px;
}

/* Dark mode adjustments */
.dark .mermaid .node rect,
.dark .mermaid .node circle,
.dark .mermaid .node ellipse,
.dark .mermaid .node polygon {
    fill: #374151;
    stroke: #4B5563;
}

.dark .mermaid text {
    fill: #F3F4F6 !important;
}

/* Adjust spacing between nodes */
.mermaid g.node {
    margin: 0 10px;
}

/* Make the diagram more compact horizontally */
.mermaid .edgePath path.path {
    stroke-width: 1.5px;
    margin: 0 5px;
}

/* Image containers */
.screenshot-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-height: 600px;
    overflow: hidden;
}

.screenshot-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.screenshot-container img {
    width: 100%;
    border-radius: 8px;
    cursor: zoom-in;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-container:hover .zoom-controls {
    opacity: 1;
}

.zoom-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-container:hover .zoom-btn {
    background: var(--primary);
    transform: scale(1.1);
}

/* Viewer.js customization */
.viewer-zoom-in, 
.viewer-zoom-out {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 8px;
}

.viewer-zoom-in:hover, 
.viewer-zoom-out:hover {
    background-color: var(--primary);
}

/* Fancybox customization */
.fancybox-fadeIn {
    animation: fancyboxFadeIn 0.3s ease-in-out;
}

.fancybox-fadeOut {
    animation: fancyboxFadeOut 0.3s ease-in-out;
}

@keyframes fancyboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fancyboxFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Lightbox customization */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-outerContainer {
    border-radius: 4px;
}

/* Screenshot descriptions */
.screenshot-description {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.screenshot-description h5 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.screenshot-description ul {
    list-style: none;
    padding-left: 0;
}

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

.screenshot-description ul li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
}

.feature-card h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.feature-card ul li:before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Transaction Status Cards */
.status-card {
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.status-card.pending {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
}

.status-card.approved {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.status-card.rejected {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.status-card h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.status-card p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Interactive Feature Cards */
.feature-card.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding: 1.5rem;
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Setup Checklist */
.setup-checklist .progress {
    height: 8px;
    border-radius: 4px;
}

.setup-checklist .progress-bar {
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.setup-checklist .form-check {
    margin-bottom: 0.75rem;
}

/* Copy Button */
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: rgba(255,255,255,0.2);
}

/* Credential copy buttons */
.copy-text {
    color: var(--primary);
    padding: 0;
    font-size: 0.875rem;
}

.copy-text:hover {
    color: darken(var(--primary), 10%);
}

.alert code {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
} 