/* Parent Dashboard Modern CSS */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Main Wrapper */
.visu-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--gray-800);
}

/* Login Required / Not Parent Messages */
.visu-login-required,
.visu-not-parent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.125rem;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    margin: 2rem auto;
}

/* Back Button */
.visu-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.visu-back-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateX(-4px);
}

.visu-back-button svg {
    transition: transform 0.2s ease;
}

.visu-back-button:hover svg {
    transform: translateX(-2px);
}

/* Dashboard Header */
.visu-dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: var(--shadow-lg);
}

.visu-header-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
}

.visu-header-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.visu-header-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Header */
.visu-section-header {
    margin-bottom: 1.5rem;
}

.visu-section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.visu-section-header p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.875rem;
}

/* Create Child Section */
.visu-create-child-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.visu-create-form {
    margin-top: 1.5rem;
}

.visu-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.visu-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.visu-form-group.visu-form-full {
    grid-column: span 2;
}

.visu-form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.visu-form-group label svg {
    color: var(--primary-color);
}

.visu-form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--gray-50);
}

.visu-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.visu-form-group input::placeholder {
    color: var(--gray-400);
}

.visu-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.visu-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.visu-submit-btn svg {
    transition: transform 0.2s ease;
}

.visu-submit-btn:hover svg {
    transform: scale(1.1);
}

/* Messages */
.visu-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

.visu-message.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.visu-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.visu-message svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.visu-message strong {
    font-weight: 600;
}

/* Children Section */
.visu-children-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.visu-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.visu-children-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.visu-children-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

.visu-children-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.visu-children-table tr:hover td {
    background: var(--gray-50);
}

.visu-username-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.visu-username-cell svg {
    color: var(--primary-color);
}

.visu-extra-badge {
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--gray-700);
    display: inline-block;
}

.visu-no-info {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.visu-experiment-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.visu-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.visu-view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.visu-view-btn:hover svg {
    stroke: white;
}

/* Empty State */
.visu-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--gray-200);
}

.visu-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.visu-empty-icon svg {
    stroke: var(--gray-400);
}

.visu-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
}

.visu-empty-state p {
    color: var(--gray-500);
    margin: 0;
}

/* Child Profile */
.visu-child-profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.visu-child-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.visu-child-details h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.visu-child-details p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

/* Experiments Header */
.visu-experiments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.visu-experiments-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.visu-experiment-total {
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Experiments Grid */
.visu-experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.visu-experiment-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.visu-experiment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.visu-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.visu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.visu-experiment-card:hover .visu-card-image img {
    transform: scale(1.05);
}

.visu-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.visu-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.visu-status-badge.status-publish {
    background: var(--success-color);
}

.visu-status-badge.status-pending {
    background: var(--warning-color);
}

.visu-status-badge.status-draft {
    background: var(--gray-500);
}

.visu-card-content {
    padding: 1.5rem;
}

.visu-card-content h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.visu-card-content h4 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.visu-card-content h4 a:hover {
    color: var(--primary-color);
}

.visu-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.visu-tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.visu-tag.difficulty {
    background: #e0f2fe;
    color: #0369a1;
}

.visu-card-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.visu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
}

.visu-card-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-400);
    font-size: 0.75rem;
}

.visu-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.visu-view-link:hover {
    gap: 0.75rem;
    color: var(--primary-hover);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .visu-dashboard-wrapper {
        padding: 1rem;
    }

    .visu-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .visu-header-content h1 {
        font-size: 1.5rem;
    }

    .visu-form-grid {
        grid-template-columns: 1fr;
    }

    .visu-form-group.visu-form-full {
        grid-column: span 1;
    }

    .visu-child-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .visu-experiments-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .visu-children-table {
        font-size: 0.75rem;
    }

    .visu-children-table th,
    .visu-children-table td {
        padding: 0.75rem 0.5rem;
    }

    .visu-view-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .visu-children-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .visu-experiments-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.visu-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.visu-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.visu-child-info-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        padding: 30px;
        margin: 20px 0;
        color: white;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .visu-child-avatar {
        width: 60px;
        height: 60px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: bold;
        border: 2px solid rgba(255,255,255,0.3);
    }
    
    .visu-notice-card {
        background: #fff3cd;
        border: 1px solid #ffeeba;
        border-radius: 12px;
        padding: 25px;
        margin: 20px 0;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
    .visu-notice-icon {
        font-size: 32px;
        background: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .visu-notice-content h3 {
        margin: 0 0 10px 0;
        color: #856404;
    }
    
    .visu-notice-content p {
        margin: 5px 0;
        color: #856404;
    }
    
    .visu-parent-info {
        background: rgba(255,255,255,0.2);
        padding: 8px 15px;
        border-radius: 20px;
        display: inline-block;
        margin-top: 10px;
        font-size: 14px;
    }
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .visu-create-child-section,
    .visu-back-button,
    .visu-view-btn {
        display: none;
    }

    .visu-dashboard-header {
        background: none;
        color: black;
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }

    .visu-header-icon {
        background: var(--gray-100);
    }

    .visu-experiment-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }
}
        /* Parent Dashboard Specific Styles */
        :root {
            --primary-color: #667eea;
            --primary-dark: #5a67d8;
            --secondary-color: #764ba2;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;
        }

        .visu-dashboard-wrapper {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }

        .visu-dashboard-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
            color: white;
        }

        .visu-header-content h1 {
            margin: 0 0 10px 0;
            font-size: 36px;
            font-weight: 600;
        }

        .visu-header-content p {
            margin: 0;
            font-size: 18px;
            opacity: 0.9;
        }

        .visu-header-icon svg {
            stroke: white;
        }

        /* Limit Indicator */
        .visu-limit-indicator {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--gray-200);
        }

        /* Create Child Section */
        .visu-create-child-section {
            background: white;
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 40px;
            border: 1px solid var(--gray-200);
        }

        .visu-section-header {
            margin-bottom: 25px;
        }

        .visu-section-header h2 {
            margin: 0 0 10px 0;
            font-size: 24px;
            color: var(--gray-800);
        }

        .visu-section-header p {
            margin: 0;
            color: var(--gray-600);
        }

        .visu-form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .visu-form-group {
            margin-bottom: 15px;
        }

        .visu-form-group label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--gray-700);
        }

        .visu-form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid var(--gray-200);
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .visu-form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .visu-form-full {
            grid-column: span 2;
        }

        .visu-submit-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .visu-submit-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .visu-submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Messages */
        .visu-message {
            margin: 20px 0;
            padding: 15px 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .visu-message.success {
            background: #d1fae5;
            border: 1px solid #a7f3d0;
            color: #065f46;
        }

        .visu-message.error {
            background: #fee2e2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }

        /* Children Table */
        .visu-children-section {
            background: white;
            border-radius: 20px;
            padding: 30px;
            border: 1px solid var(--gray-200);
        }

        .visu-table-container {
            overflow-x: auto;
        }

        .visu-children-table {
            width: 100%;
            border-collapse: collapse;
        }

        .visu-children-table th {
            text-align: left;
            padding: 15px;
            background: var(--gray-50);
            color: var(--gray-700);
            font-weight: 600;
            font-size: 14px;
            border-bottom: 2px solid var(--gray-200);
        }

        .visu-children-table td {
            padding: 15px;
            border-bottom: 1px solid var(--gray-200);
            color: var(--gray-600);
        }

        .visu-username-cell {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .visu-extra-badge {
            background: var(--gray-100);
            padding: 4px 12px;
            border-radius: 30px;
            font-size: 12px;
            color: var(--gray-700);
        }

        .visu-no-info {
            color: var(--gray-400);
            font-style: italic;
        }

        .visu-experiment-count {
            background: var(--primary-color);
            color: white;
            padding: 3px 10px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
        }

        .visu-view-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            background: var(--gray-100);
            color: var(--gray-700);
            text-decoration: none;
            border-radius: 6px;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .visu-view-btn:hover {
            background: var(--primary-color);
            color: white;
        }

        /* Empty State */
        .visu-empty-state {
            text-align: center;
            padding: 60px 40px;
        }

        .visu-empty-icon {
            font-size: 64px;
            margin-bottom: 20px;
            color: var(--gray-400);
        }

        .visu-empty-state h3 {
            margin: 0 0 10px 0;
            color: var(--gray-700);
        }

        .visu-empty-state p {
            margin: 0;
            color: var(--gray-500);
        }

        @media (max-width: 768px) {
            .visu-form-grid {
                grid-template-columns: 1fr;
            }

            .visu-form-full {
                grid-column: span 1;
            }

            .visu-dashboard-header {
                flex-direction: column;
                text-align: center;
                gap: 20px;
            }
 }
 