.process-graphic-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.process-graphic-wrapper {
    position: relative;
    width: 100%;
}

.process-graphic {
    width: 100%;
    height: auto;
    display: block;
}

.process-title {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    display: block;
}

.process-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    /* No CSS transition - let JS handle all movement */
    pointer-events: none;
    z-index: 10;
    will-change: left, top; /* Performance hint for browser */
}

.process-graphic-side {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    width: 100%;
    
    position: sticky;
    top: 4rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 4px solid orange; */
}

.nav-btn {
    padding: 1rem;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #4B5563;
}

.nav-btn:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    color: #2563EB;
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: translateY(0);
}

.process-container {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding-top: 4rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.process-steps-side {
    width: 100%;
    min-height: 50vh;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
    z-index: 5;
    padding: 2rem;
   /* border: 4px solid red; */
}

.process-section {
    width: 100%;
    min-height: 200px;
    position: relative;
    opacity: 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    /* border: 2px solid blue; */
    border-radius: 1rem; /* Added to make the corners rounded */
    z-index: 6;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin-bottom: 2rem;
}

.process-section.active {
    opacity: 1;
    position: relative;
    pointer-events: all;
}

.process-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #fbf8fc, #f9f9f1);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* border: 2px solid purple; */
    position: relative;
    z-index: 7;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.process-section.active .process-content {
    opacity: 1;
    transform: translateY(0);
}

.process-content img {
    width: 50%;
    max-width: 50%;
    height: auto;
    margin-top: 2rem;
    display: block;
    border: 2px solid green;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.process-section.active .process-content img {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .process-container {
        display: block;
        padding-top: 0;
        min-height: 100vh;
    }

    .process-graphic-side {
        width: 50%;
        height: calc(100vh - 4rem);
        position: fixed;
        top: 4rem;
        left: 0;
    }

    .process-steps-side {
        width: 50%;
        margin-left: 50%;
        min-height: calc(100vh - 4rem);
        padding: 4rem 2rem;
        background: linear-gradient(135deg, #f8fafc, #f9f1f5);;
        position: relative;
    }

    .process-section {
        min-height: calc(100vh - 8rem);
    }
}

@media (max-width: 768px) {
    .process-container {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .process-graphic-side {
        height: 35vh;
        min-height: 250px;
        max-height: 300px;
        position: sticky;
        top: 4rem;
        z-index: 10;
        order: 1;
    }

    .process-steps-side {
        margin-top: 0;
        padding-top: 1rem;
        order: 2;
        position: relative;
        z-index: 5;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        width: 100%;
        min-height: auto;
    }

    .process-section {
        min-height: auto;
        margin-bottom: 2rem;
    }

    .process-graphic-container {
        padding: 10px;
    }

    .process-title {
        max-width: 300px;
        margin: 0 auto 1rem;
    }

    .process-steps-side {
        margin-left: 0;
        width: 100%;
    }

    .process-section {
        min-height: 50vh;
    }
}

.step-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.step-title {
    position: relative;
    display: inline-block;
    color: #003366;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.process-content:hover .step-title::after {
    width: 100%;
}

.step-title::before {
    content: attr(data-number);
    position: absolute;
    left: -60px;
    top: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(59,130,246,0.3);
    animation: pulse 2s infinite;
}

.step-text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 500px;
    font-family: 'Inter', sans-serif;
}

.gold-text {
    color: #C5A572;
}

.gray-text {
    color: #666666;
}
.dark-green-text {
    color: #196819; /* Dark green color */
}

.purple-text {
    color: #6B5B95;
}

/* Animation states */
.process-section {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-section.active {
    opacity: 1;
}

.step-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.process-section.active .step-description {
    opacity: 1;
    transform: translateY(0);
}

/* Debug overlay for dot coordinates */
.dot-debug-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    z-index: 100;
    pointer-events: none;
    display: none; /* Hidden by default, will be shown with JavaScript */
}

/* Path point markers for debugging */
.path-point-marker {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 0, 0, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    cursor: pointer;
}

.path-point-marker:hover {
    background-color: rgba(255, 0, 0, 1);
    box-shadow: 0 0 5px red;
}

.path-point-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 8px;
    padding: 1px 3px;
    border-radius: 2px;
    pointer-events: none;
}

/* Path editor panel */
.path-editor-panel {
    position: fixed; /* Use fixed positioning to allow positioning outside of container */
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: sans-serif;
    font-size: 12px;
    z-index: 1000; /* Higher z-index to keep it above all content */
    width: 230px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    user-select: none; /* Prevent text selection during drag */
    cursor: default; /* Override any inherited cursor */
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    cursor: move; /* Show move cursor on the entire header */
}

.panel-header.dragging {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
}

.drag-handle {
    color: #777;
    cursor: move;
    font-size: 10px;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.drag-handle:hover, .panel-header:hover .drag-handle {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.path-editor-panel h3 {
    margin: 0;
    font-size: 14px;
    color: #4ade80;
}

.path-editor-panel div {
    margin-bottom: 6px;
    font-size: 11px;
    color: #e5e7eb;
}

.path-editor-panel .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.path-editor-panel button {
    flex: 1 0 45%; /* Two buttons per row with some space in between */
    padding: 6px 5px;
    background-color: #3b82f6;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.path-editor-panel button:hover {
    background-color: #2563eb;
}

#cancelPathBtn {
    background-color: #ef4444;
}

#cancelPathBtn:hover {
    background-color: #dc2626;
}

#copyPathBtn {
    background-color: #8b5cf6;
}

#copyPathBtn:hover {
    background-color: #7c3aed;
}

#resetPathBtn {
    background-color: #f59e0b;
}

#resetPathBtn:hover {
    background-color: #d97706;
}

.editor-coordinates {
    margin-top: 10px;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: monospace;
    text-align: center;
}
