.chamelearn-profile-wrap {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chamelearn-profile-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.chamelearn-section-title {
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chamelearn-section-title .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.chamelearn-section-desc {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.chamelearn-profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.chamelearn-profile-avatar img {
    border-radius: 50%;
    border: 3px solid #f1f5f9;
}

.chamelearn-profile-name {
    margin: 0 0 6px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.chamelearn-profile-email,
.chamelearn-profile-role {
    margin: 2px 0;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chamelearn-profile-email .dashicons,
.chamelearn-profile-role .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.chamelearn-profile-actions {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.chamelearn-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.chamelearn-btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.chamelearn-btn-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.chamelearn-subject-form {
    margin-bottom: 24px;
}

.chamelearn-subject-form-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.chamelearn-subject-input-wrap {
    flex: 1;
    min-width: 200px;
}

.chamelearn-subject-input-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.chamelearn-subject-input-wrap input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chamelearn-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chamelearn-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.chamelearn-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.chamelearn-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chamelearn-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.chamelearn-subjects-list h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.chamelearn-subjects-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.chamelearn-subject-item {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

.chamelearn-empty-text {
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
}

@media (max-width: 640px) {
    .chamelearn-profile-info {
        flex-direction: column;
        text-align: center;
    }
    .chamelearn-subject-form-row {
        flex-direction: column;
    }
    .chamelearn-subjects-ul {
        grid-template-columns: 1fr;
    }
}
