/**
 * Visu Admin Styles
 * Version: 1.0.0
 */

/* Admin Notices */
.visu-admin-notice {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    padding: 12px;
    margin: 10px 0;
}

.visu-admin-notice.warning {
    background: #fff3e6;
    border-left-color: #f59e0b;
}

.visu-admin-notice.error {
    background: #fee2e2;
    border-left-color: #ef4444;
}

.visu-admin-notice.success {
    background: #d1fae5;
    border-left-color: #10b981;
}

/* User Profile Page */
.visu-child-accounts-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.visu-child-accounts-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1f2937;
}

.visu-child-accounts-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.visu-child-accounts-list li {
    padding: 8px 12px;
    background: white;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visu-child-account-name {
    font-weight: 600;
    color: #374151;
}

.visu-child-account-username {
    color: #6b7280;
    font-size: 12px;
    margin-left: 8px;
}

.visu-child-experiment-count {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Limit Indicator in Admin */
.visu-admin-limit-indicator {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.visu-admin-limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.visu-admin-limit-header span:first-child {
    font-weight: 600;
    color: #374151;
}

.visu-admin-limit-count {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.visu-admin-limit-count.available {
    background: #10b981;
    color: white;
}

.visu-admin-limit-count.reached {
    background: #ef4444;
    color: white;
}

.visu-admin-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.visu-admin-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.visu-admin-limit-message {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* User List Column */
.visu-column-child-count {
    width: 100px;
    text-align: center;
}

.visu-child-count-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}

.visu-child-count-badge.has-children {
    background: #667eea;
    color: white;
}

/* Settings Page */
.visu-settings-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.visu-settings-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.visu-settings-field {
    margin-bottom: 15px;
}

.visu-settings-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.visu-settings-field input[type="number"] {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.visu-settings-description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}