/* ====== Main Layout ====== */
.visu-account {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

.visu-tab-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 120%;
    color: #000000;
    font-family: 'Space Grotesk';
    margin-bottom: 0px !important;
}

.visu-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    color: #525F7A;
    margin-bottom: 0px !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.visu-step-count {
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    color: #000000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-top: 32px;
    margin-bottom: 10px;
}

.visu-step-icon img {
    height: 52px;
    width: 52px;
}

.visu-steps-deatils h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    color: #000000;
    font-family: 'Space Grotesk', sans-serif;
}

.visu-steps-deatils span {
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    color: #525F7A;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.visu-sidebar {
    width: 100%;
    border-radius: 16px;
    flex-shrink: 0;
}

.visu-sidebar li {
    list-style: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.entry-content ul,
.entry-content ol {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 50px !important;
    justify-content: center;
}

.visu-sidebar li:hover {
    background: #E8EDFF;
}

.visu-sidebar li.active {
    background: #5478FF;
    color: #fff;
}

.visu-content {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 100%;
}

.Hypothesis-deatils {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #EFF7FF;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0px;
}

.Hypothesis-deatils img {
    width: 20px;
    height: auto;
}

.Hypothesis-deatils p {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    color: #525F7A;
}

.visu-tab-content {
    display: none;
}

.visu-tab-content.active {
    display: block;
}

.visu-step {
    display: none;
}

.visu-step.active {
    display: block;
}

/* ====== Card Styling ====== */
.visu-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    background: #ffffff;
    border: 1px solid #DEE6ED;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
    transition: .3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    margin: 0 !important;
}

.visu-header {
    display: flex;
    justify-content: start;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.visu-divider {
    height: 1px;
    background: #000000;
    margin-top: 16px;
    margin-bottom: 41px;
    border: none;
}

.visu-descriptive {
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    color: #525F7A;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-top: 18px;
    margin-bottom: 24px !important;
}

.Materials-deatils h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    display: block;
    margin-bottom: 10px;
    color: #000000;
    font-family: 'Space Grotesk';
    margin-top: 24px;
}

.Materials-deatils p {
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    display: block;
    margin-bottom: 10px;
    color: #525F7A;
    font-family: 'Plus Jakarta Sans';
}

/* ====== Form Fields ====== */
.visu-field {
    margin-bottom: 20px;
}

.visu-field label {
    font-size: 18px;
    font-weight: 700;
    line-height: 120%;
    display: block;
    margin-bottom: 10px;
    color: #000000;
    font-family: 'Space Grotesk';
}

.visu-field input,
.visu-field textarea,
.visu-field select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    font-family: inherit;
    font-size: 15px;
    transition: border 0.3s ease;
}

.visu-field input:focus,
.visu-field textarea:focus,
.visu-field select:focus {
    outline: none;
    border-color: #5478FF;
    box-shadow: 0 0 0 3px rgba(84, 120, 255, 0.1);
}

.visu-field textarea {
    min-height: 100px;
    resize: vertical;
}

.visu-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ====== Progress Bar ====== */
.visu-step-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visu-step-percent {
    color: #5E83FF;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    margin-top: 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.visu-count-wrapper {
    width: 100%;
    height: 8px;
    background: #EFF7FF;
    border-radius: 30px;
    margin-top: 10px;
    margin-bottom: 32px;
    overflow: hidden;
}

.left-bar {
    width: 0%;
    height: 100%;
    background: #5E83FF;
    border-radius: 8px;
    transition: width 0.4s ease;
}

/* ====== Buttons ====== */
.visu-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.visu-actions button {
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.prev-step {
    background: none;
    color: #374151;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.prev-step:hover {
    background: #E5E7EB;
}

.next-step,
.submit-step {
    background: #5E83FF;
    color: #F7FAFC;
    width: 154px;
    height: 44px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.next-step:hover,
.submit-step:hover {
    background: #4338CA;
    transform: translateY(-1px);
}

/* ====== Materials Section ====== */
.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.material-item input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
}

.material-item button {
    background: white;
    color: #EF4444;
    border: 1px solid #FCA5A5;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.material-item button:hover {
    background: #FEE2E2;
}

.add-material {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px dashed #A5B4FC;
    background: #F8FAFC;
    color: #4F46E5;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.add-material:hover {
    background: #EFF6FF;
    border-color: #818CF8;
}

/* ====== Safety Notes ====== */
.safety-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #B45309;
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 24px;
    margin-top: 10px;
    font-family: 'Space Grotesk';
}

#safetyNotes {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding-top: 9px;
    padding-left: 13px;
    padding-bottom: 42px;
    border-radius: 6px;
    margin-top: 10px;
}

#safetyNotes::placeholder {
    color: #B45309;
}

.safety-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-title span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    color: #B45309;
}

/* ====== Instructions ====== */
.visu-box {
    background: #F0F9FF;
    padding: 32px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.visu-box h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 16px;
    color: #000000;
    font-family: 'Space Grotesk', sans-serif;
}

.visu-help {
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    color: #525F7A;
    margin-bottom: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #E5E7EB;
}

.step-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: #E0E7FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4F46E5;
}

.instruction-item input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.remove-step {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #EF4444;
    padding: 8px;
}

.add-step {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #4F46E5;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.add-step:hover {
    background: #4338CA;
}

/* ====== Media Upload ====== */
.visu-media {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

/* Tabs */
.media-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 20px;
}

.media-tab {
    background: none;
    border: none;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
    color: #6B7280;
    position: relative;
}

.media-tab.active {
    color: #4F46E5;
}

.media-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4F46E5;
}

/* Upload box */
.upload-box {
    border: 2px dashed #C7D2FE;
    border-radius: 12px;
    padding: 48px 20px;
    text-align: center;
    cursor: pointer;
    background: #FFFFFF;
    transition: all .3s ease;
    position: relative;
}

.upload-box:hover {
    background: #F8FAFF;
    border-color: #6366F1;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* Content */
.media-content {
    display: none;
}

.media-content.active {
    display: block;
}

/* Preview */
.video-preview {
    display: none;
    margin-top: 16px;
}

.video-preview video {
    width: 100%;
    max-height: 300px;
    border-radius: 10px;
    background: #000;
}

/* ====== Step 5 & 6 Specific ====== */
.visu-step-5,
.visu-step-6 {
    max-width: 900px;
    margin: 0 auto;
}

.visu-label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 600;
    color: #374151;
}

.Observations-label {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 20px;
    margin-top: 24px;
    font-family: 'Space Grotesk';
}

.conclusion-label {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 10px;
    margin-top: 24px;
    font-family: 'Space Grotesk';
}

.visu-textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    font-family: inherit;
    font-size: 15px;
}

.visu-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    font-family: inherit;
    font-size: 15px;
}

/* ====== Success Message ====== */
.you-made-it-box {
    background-color: #F0FDF4;
    padding: 20px;
    color: #065F46;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #A7F3D0;
}

.you-made-it-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.you-made-it-box strong {
    font-weight: 700;
}

/* ====== My Experiments Table ====== */
.visu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.visu-table th,
.visu-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.visu-table th {
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.visu-table tr:hover {
    background: #F9FAFB;
}

/* ====== Edit Button ====== */
.edit-btn,
.save-btn,
.cancel-btn,
.unsave-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    margin-right: 5px;
}

.edit-btn {
    background: #10B981;
    color: white;
}

.unsave-btn {
    background: #EF4444;
    color: white;
}

.save-btn {
    background: #3B82F6;
    color: white;
}

.cancel-btn {
    background: #6B7280;
    color: white;
}

.submit-step {
    width: 239px;
    height: 44px;
    background: #43A047;
    color: #ffffff;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ====== Success Popup ====== */
.visu-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.visu-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.visu-success-popup {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.visu-success-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #43A047, #66BB6A);
}

.visu-success-overlay.active .visu-success-popup {
    transform: translateY(0) scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #43A047 0%, #66BB6A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: bounce 0.6s ease 0.3s both;
    box-shadow: 0 10px 20px rgba(67, 160, 71, 0.3);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #43A047;
    margin-bottom: 10px;
    line-height: 1.2;
}

.success-message {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: #525F7A;
    line-height: 1.5;
    margin-bottom: 25px;
}

.success-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.success-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn-primary {
    background: #43A047;
    color: white;
}

.success-btn-primary:hover {
    background: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 160, 71, 0.3);
}

.success-btn-secondary {
    background: #F7F9FC;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.success-btn-secondary:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

.success-stats {
    background: #F0FDF4;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #C8E6C9;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 24px;
    height: 24px;
    background: #C8E6C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #43A047;
    font-size: 12px;
    flex-shrink: 0;
}

.stat-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #2E7D32;
    text-align: left;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD54F;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.confetti:nth-child(2n) {
    background: #4FC3F7;
}

.confetti:nth-child(3n) {
    background: #BA68C8;
}

.confetti:nth-child(4n) {
    background: #FF8A65;
}

.confetti:nth-child(5n) {
    background: #81C784;
}

/* Update Popup Specific */
#updatePopup .visu-success-popup::before {
    background: linear-gradient(90deg, #2196F3, #21CBF3);
}

#updatePopup .success-icon {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

#updatePopup .success-title {
    color: #2196F3;
}

#updatePopup .success-stats {
    background: #E3F2FD;
    border-color: #90CAF9;
}

#updatePopup .stat-icon {
    background: #BBDEFB;
    color: #2196F3;
}

#updatePopup .stat-text {
    color: #1565C0;
}

#updatePopup .success-btn-primary {
    background: #2196F3;
}

#updatePopup .success-btn-primary:hover {
    background: #1976D2;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Error Popup Specific */
#errorPopup .visu-success-popup::before {
    background: linear-gradient(90deg, #F44336, #EF5350);
}

#errorPopup .success-icon {
    background: linear-gradient(135deg, #F44336 0%, #EF5350 100%);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

#errorPopup .success-title {
    color: #F44336;
}

/* ====== Close Button ====== */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #F1F5F9;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #E2E8F0;
    color: #475569;
    transform: rotate(90deg);
}

.popup-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Responsive adjustments for close button */
@media (max-width: 480px) {
    .popup-close {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* ====== Video Upload Box Fix ====== */
#videoInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* ====== Error Styling ====== */
.error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
}

.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-approved {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-draft {
    background: #E5E7EB;
    color: #374151;
}

.status-saved {
    background: #E0F2FE;
    color: #0369A1;
}

.view-btn,
.edit-btn,
.continue-btn,
.unsave-btn {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 8px;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.view-btn {
    background: #3B82F6;
    color: white;
}

.edit-btn {
    background: #10B981;
    color: white;
}

.continue-btn {
    background: #F59E0B;
    color: white;
}

.unsave-btn {
    background: #EF4444;
    color: white;
}

.view-btn:hover {
    background: #2563EB;
}

.edit-btn:hover {
    background: #059669;
}

.continue-btn:hover {
    background: #D97706;
}

.unsave-btn:hover {
    background: #DC2626;
}

.no-experiments {
    text-align: center;
    padding: 60px 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.no-experiments h3 {
    color: #6B7280;
    margin-bottom: 15px;
}

/* ====== Saved Experiments ====== */
.saved-experiments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    font-family: 'Space Grotesk', sans-serif;
}

.section-subtitle {
    color: #6B7280;
    font-size: 14px;
    margin-top: 5px;
}

/* ====== Save Success Popup ====== */
#saveSuccessPopup .visu-success-popup::before {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

#saveSuccessPopup .success-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

#saveSuccessPopup .success-title {
    color: #F59E0B;
}

#saveSuccessPopup .success-stats {
    background: #FFFBEB;
    border-color: #FDE68A;
}

#saveSuccessPopup .stat-icon {
    background: #FDE68A;
    color: #92400E;
}

#saveSuccessPopup .stat-text {
    color: #92400E;
}

/* ====== Save Experiment Button Styles ====== */
.visu-action-btn.save-btn {
    border-color: #3B82F6;
    color: #3B82F6;
    background: none;
    border: 1px solid #D1D5DB;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.visu-action-btn.save-btn:hover {
    background: #EFF6FF;
    border-color: #3B82F6;
}

.visu-action-btn.save-btn.saved {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: white !important;
}

.visu-action-btn.save-btn.saved:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

.visu-action-btn.save-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ====== Saved Experiments List Styles ====== */
.visu-saved-experiments-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.visu-saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E5E7EB;
}

.visu-saved-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.visu-saved-subtitle {
    color: #6B7280;
    margin-top: 5px;
}

.visu-saved-count {
    background: #E0F2FE;
    color: #0369A1;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.visu-saved-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.visu-saved-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visu-saved-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #C7D2FE;
}

.visu-saved-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.visu-saved-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-bottom: 10px;
}

.visu-saved-card-title a {
    color: inherit;
    text-decoration: none !important;
}

.visu-saved-card-title a:hover {
    color: #4F46E5;
}

.visu-saved-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.badge-published {
    background: #D1FAE5;
    color: #065F46;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-draft {
    background: #E5E7EB;
    color: #374151;
}

.badge-your {
    background: #E0F2FE;
    color: #0369A1;
}

.visu-saved-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.visu-saved-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.visu-saved-excerpt {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visu-saved-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}

.visu-saved-actions {
    display: flex;
    gap: 8px;
}

.visu-saved-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.visu-saved-view {
    background: #EEF2FF;
    color: #4F46E5;
}

.visu-saved-view:hover {
    background: #E0E7FF;
}

.visu-saved-unsave {
    background: #FEE2E2;
    color: #DC2626;
}

.visu-saved-unsave:hover {
    background: #FECACA;
}

.visu-saved-edit {
    background: #D1FAE5;
    color: #065F46;
}

.visu-saved-edit:hover {
    background: #A7F3D0;
}

.visu-saved-empty {
    text-align: center;
    padding: 60px 20px;
    background: #F9FAFB;
    border-radius: 16px;
    margin-top: 40px;
}

.visu-saved-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #9CA3AF;
}

.visu-saved-empty h3 {
    color: #374151;
    margin-bottom: 10px;
}

.visu-saved-empty p {
    color: #6B7280;
    max-width: 500px;
    margin: 0 auto 20px;
}

.visu-saved-empty-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4F46E5;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
}

.visu-saved-empty-btn:hover {
    background: #4338CA;
}

/* ====== Profile CSS ====== */
.visu-profile-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.visu-profile-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E7EB;
}

.profile-avatar {
    position: relative;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
}

.edit-profile-btn {
    background: none;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: #F9FAFB;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111827;
    font-family: 'Space Grotesk', sans-serif;
}

.profile-email,
.profile-role {
    color: #6B7280;
    margin: 5px 0;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.profile-stat {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.profile-stat:hover {
    background: #F9FAFB;
    transform: translateY(-2px);
}

.profile-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    font-family: 'Space Grotesk', sans-serif;
}

.profile-stat span {
    font-size: 14px;
    color: #6B7280;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.profile-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    border-bottom: 3px solid transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
}

.profile-tab.active {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
    font-weight: 600;
}

.profile-tab:hover {
    background: #F9FAFB;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.followers-list,
.following-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.follower-item,
.following-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.follower-item:hover,
.following-item:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.follower-avatar,
.following-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.follower-info,
.following-info {
    flex: 1;
}

.follower-info h4,
.following-info h4 {
    margin: 0 0 5px 0;
    color: #111827;
    font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.follower-info p,
.following-info p {
    margin: 0;
    color: #6B7280;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.follows-you {
    background: #E0F2FE;
    color: #0369A1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.view-profile-btn {
    background: #4F46E5;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}

.view-profile-btn:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.following-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.unfollow-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}

.unfollow-btn:hover {
    background: #FECACA;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    background: #F9FAFB;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ====== Experiment Badges ====== */
.experiment-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.badge-published {
    background: #D1FAE5;
    color: #065F46;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-draft {
    background: #E5E7EB;
    color: #374151;
}

/* ====== Experiment Stats ====== */
.experiment-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.experiment-stats span {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ====== Sidebar Tabs ====== */
.visu-sidebar-tabs {
    width: 100%;
    background: #0b1220;
    padding: 14px;
    border-radius: 16px;
    list-style: none;
    display: flex;
    flex-direction: row;
    height: auto;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

/* tab item */
.visu-sidebar-tabs li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    text-align: center;
}

/* icon */
.visu-sidebar-tabs li i {
    font-size: 16px;
    min-width: 20px;
    transition: transform 0.3s ease;
}

/* hover */
.visu-sidebar-tabs li:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.visu-sidebar-tabs li:hover i {
    transform: translateX(3px);
}

/* active */
.visu-sidebar-tabs li.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

/* active top indicator */
.visu-sidebar-tabs li.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 4px;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

/* ====== Responsive Design ====== */

/* Desktop (900px and above) - Sidebar as horizontal row at top */
@media screen and (min-width: 900px) {
    .visu-account {
        display: flex;
        flex-direction: column;
    }
    
    .visu-sidebar-tabs {
        display: flex !important;
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 15px;
    }
    
    .visu-content {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .visu-sidebar-tabs li {
        flex-direction: row;
        padding: 15px 25px;
        font-size: 15px;
    }
    
    .visu-sidebar-tabs li span {
        display: inline !important;
    }
    
    .visu-sidebar-tabs li i {
        margin-right: 8px;
    }
    
    .visu-sidebar-tabs li.active::before {
        left: 25%;
        width: 50%;
        height: 4px;
        top: 0;
    }
}

/* Tablet (600px to 899px) - Sidebar as horizontal row with smaller items */
@media screen and (min-width: 600px) and (max-width: 899px) {
    .visu-account {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .visu-sidebar-tabs {
        display: flex !important;
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 12px;
    }
    
    .visu-content {
        margin-left: 0;
        margin-top: 15px;
        padding: 25px;
    }
    
    .visu-sidebar-tabs li {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .visu-sidebar-tabs li span {
        display: block !important;
        margin-top: 5px;
        font-size: 12px;
    }
    
    .visu-sidebar-tabs li i {
        font-size: 18px;
        margin: 0;
    }
    
    .visu-sidebar-tabs li.active::before {
        left: 30%;
        width: 40%;
        height: 4px;
        top: 0;
    }
    
    .visu-tab-content h1 {
        font-size: 36px;
    }
    
    .visu-description {
        font-size: 15px;
    }
    
    .visu-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile (below 600px) - Sidebar as scrollable horizontal row */
@media screen and (max-width: 599px) {
    .visu-account {
        display: flex;
        flex-direction: column;
        margin: 20px auto;
        gap: 15px;
    }
    
    .visu-sidebar-tabs {
        display: flex !important;
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .visu-sidebar-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .visu-sidebar-tabs::-webkit-scrollbar-thumb {
        background: #6366f1;
        border-radius: 10px;
    }
    
    .visu-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0;
        margin-bottom: 0;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .visu-sidebar-tabs li {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        font-size: 12px;
        min-width: 90px;
    }
    
    .visu-sidebar-tabs li span {
        display: block !important;
        font-size: 11px;
        margin-top: 4px;
        text-align: center;
    }
    
    .visu-sidebar-tabs li i {
        font-size: 16px;
        margin: 0;
    }
    
    .visu-sidebar-tabs li.active::before {
        left: 20%;
        width: 60%;
        height: 3px;
        top: 0;
    }
    
    .visu-tab-content h1 {
        font-size: 28px;
    }
    
    .visu-description {
        font-size: 14px;
    }
    
    .visu-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .visu-card {
        padding: 15px;
    }
    
    .visu-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .visu-actions button {
        width: 100%;
    }
}

/* Common responsive styles for all screen sizes */
@media screen and (max-width: 899px) {
    .visu-step-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .media-content.active {
        padding: 20px 0;
    }
    
    .upload-box {
        padding: 30px 15px;
    }
    
    .success-buttons {
        flex-direction: column;
    }
    
    .visu-success-popup {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .success-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .visu-content {
        padding: 20px 15px;
    }
    
    .visu-card {
        padding: 20px;
    }
    
    .visu-field input,
    .visu-field textarea,
    .visu-field select {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .success-title {
        font-size: 24px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Responsive for saved experiments */
@media (max-width: 768px) {
    .visu-saved-list {
        grid-template-columns: 1fr;
    }
    
    .visu-saved-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .visu-saved-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .visu-saved-actions {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .visu-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .follower-item,
    .following-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .following-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .view-profile-btn,
    .unfollow-btn {
        width: 100%;
        text-align: center;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .follower-info h4,
    .following-info h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .experiment-badge {
        margin-left: 0;
        margin-top: 5px;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 28px;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.visu-card {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
    padding: 25px;
}

.visu-field input,
.visu-field textarea,
.visu-field select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.visu-actions button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.visu-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.visu-table th,
.visu-table td {
    padding: 12px;
    text-align: left;
}

.visu-table th {
    font-weight: 600;
    font-size: 13px;
}

.visu-count-wrapper {
    width: 100%;
    height: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.left-bar {
    height: 100%;
    border-radius: 2px;
}

.visu-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
}

.visu-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.visu-success-popup {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
}

.visu-tab-content {
    animation: wp-fade-in 0.3s ease;
}

@keyframes wp-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visu-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media screen and (max-width: 1024px) {
    .visu-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 782px) {
    .visu-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.visu-header {
    display: flex;
    align-items: center;
    justify-content: start !important;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.visu-step-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.visu-steps-deatils h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.visu-steps-deatils span {
    font-size: 13px;
    display: block;
    margin-top: 2px;
}

.visu-divider {
    height: 1px;
    margin: 25px 0;
    border: none;
}

.visu-help {
    font-size: 13px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.Hypothesis-deatils {
    padding: 15px;
    margin: 20px 0;
}

.upload-box {
    padding: 40px 20px;
    text-align: center;
}

.visu-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    gap: 10px;
}

.media-tabs {
    display: flex;
    margin-bottom: 20px;
}

.media-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.visu-action-btn.loading {
    position: relative;
}

.visu-action-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wp-spin 0.8s linear infinite;
}

@keyframes wp-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media print {

    .visu-sidebar,
    .visu-actions,
    .add-material,
    .add-step,
    .media-tabs {
        display: none;
    }

    .visu-content {
        margin: 0;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}